CheckPassword
Security and Signatures
Description
Determines if a password is a valid password for the selected document.
This is useful when the document has been opened with the user password but confirmation should be obtained from the user before changing security settings.
Syntax
Delphi
function TPDFlib.CheckPassword(Const Password: WideString): Integer;ActiveX
Function PDFlib::CheckPassword(Password As String) As LongDLL
int DLCheckPassword(int InstanceID, wchar_t * Password);Parameters
| Password | The password to check |
|---|
Return values
| 0 | The document is not encrypted or the supplied password is not a valid owner or user password |
|---|---|
| 1 | Valid user password 2 Valid owner password 3 Valid owner and user password |