Instance Property

allowsPrinting

A Boolean value indicating whether the document allows printing.

Declaration

var allowsPrinting: Bool { get }

Discussion

The ability to print a PDF document is an attribute unrelated to whether the document is locked or unlocked. It depends on the PDF permissions set by the document’s author.

This method only determines the desired permissions setting in the PDF document; it is up to the application to enforce (or ignore) the permissions.

This method always returns true if the document is not encrypted. Note that in many cases an encrypted document may still be readable by all users due to the standard empty string password. For more details about user and owner passwords, see the Adobe PDF specification.

See Also

Getting Permissions

var allowsCopying: Bool

A Boolean value indicating whether the document allows copying of content to the Pasteboard.

var allowsCommenting: Bool

A Boolean value indicating whether you can create or modify document annotations, including form field entries.

var allowsContentAccessibility: Bool

A Boolean value indicating whether you can extract content from the document, but only for the purpose of accessibility.

var allowsDocumentAssembly: Bool

A Boolean value indicating whether you can manage a document by inserting, deleting, and rotating pages.

var allowsDocumentChanges: Bool

A Boolean value indicating whether you can modify the document contents except for document attributes.

var allowsFormFieldEntry: Bool

A Boolean value indicating whether you can modify form field entries even if you can't edit document annotations.