Debenu Quick PDF logo

CheckPassword

Security and Signatures

Version history

This function was introduced in Quick PDF Library version 10.12.

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 TDebenuPDFLibrary1511.CheckPassword(Password: WideString): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::CheckPassword(Password As String) As Long

DLL

int DPLCheckPassword(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

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport