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.1.0+b8a973db4fce43f68ed31640e557d7c5478d7f58
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