Click or drag to resize

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.0.0.0
Syntax
C#
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: Boolean
If the password is correct, this method returns true, else returns false.
See Also