Instance Property

isLocked

A Boolean value indicating whether the document is locked.

Declaration

@property(nonatomic, readonly) BOOL isLocked;

Return Value

YES if the document is locked; NO otherwise.

Discussion

Only encrypted documents can be locked. Encrypted documents whose password is the empty string are unlocked automatically upon opening, because PDF Kit tries the empty string as a password if none is supplied. Use the unlockWithPassword: method to unlock a document using a password.

See Also

Managing Document Security

isEncrypted

A Boolean value specifying whether the document is encrypted.

- unlockWithPassword:

Attempts to unlock an encrypted document.

permissionsStatus

The permissions status of the PDF document.

Permission Properties

Properties that specify what functions are allowed for a PDF document.