CPDFDocumentUnlockWithPassword Method |
Attempts to unlock an encrypted document.
If the password is correct, this method returns true, else returns false. Once unlocked, you cannot use this function to relock the document.
Namespace:
ComPDFKit.PDFDocument
Assembly:
ComPDFKit.NET (in ComPDFKit.NET.dll) Version: 2.2.0.0 (2.2.0.0)
Syntax public bool UnlockWithPassword(
string password
)
Parameters
- password
- Type: SystemString
The password to unlock an encrypted document (you cannot lock an unlocked PDF document by using an incorrect password).
Return Value
Type:
BooleanIf the password is correct, this method returns true, else returns false.
See Also