Instance Property


Returns whether the specified PDF document allows copying.


var allowsCopying: Bool { get }



A PDF document.

Return Value

A Boolean that, if true, indicates that the document allows copying. If the value is false, the document does not allow copying.


If the document is encrypted and the current password doesn't grant permission to perform copying, this returns false.

See Also

Working with an Encrypted PDF Document

var isEncrypted: Bool

Returns whether the specified PDF file is encrypted.

var allowsPrinting: Bool

Returns whether a PDF document allows printing.

var isUnlocked: Bool

Returns whether the specified PDF document is currently unlocked.

func unlockWithPassword(UnsafePointer<Int8>) -> Bool

Unlocks an encrypted PDF document when a valid password is supplied.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software