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 Long

DLL

int DLCheckPassword(int InstanceID, wchar_t * Password);

Parameters

PasswordThe password to check

Return values

0The document is not encrypted or the supplied password is not a valid owner or user password
1Valid user password 2 Valid owner password 3 Valid owner and user password