Unlocks an encrypted PDF document when a valid password is supplied.
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Graphics
A PDF document.
A pointer to a string that contains the password.
A Boolean that, if
YES, indicates that the document has been successfully unlocked. If the value is
NO, the document has not been unlocked.
Given an encrypted PDF document and a password, this function does the following:
Sets the lock state of the document, based on the validity of the password.
YESif the document is unlocked.
NOif the document cannot be unlocked with the specified password.
Unlocking a PDF document makes it possible to decrypt the document and perform other privileged operations. Different passwords enable different operations.