Instance Property

isEncrypted

Returns whether the specified PDF file is encrypted.

Declaration

var isEncrypted: Bool { get }

Parameters

document

A PDF document.

Return Value

A Boolean that, if true, indicates that the document is encrypted. If the value is false, the document is not encrypted.

Discussion

If the document is encrypted, a password must be supplied before certain operations are enabled. For more information, see unlockWithPassword(_:).

See Also

Working with an Encrypted PDF Document

var allowsCopying: Bool

Returns whether the specified PDF document allows copying.

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.