Decrypt

Document properties, Security and Signatures

Description

This function attempts to remove the encryption setting from the selected document using the password provided when originally opening the document.

This function will succeed even if the user password was used (including an valid blank password) rather than the master password. Developers are advised that they should respect the security wishes of the document's author.

Syntax

Delphi

function TPDFlib.Decrypt: Integer;

ActiveX

Function PDFlib::Decrypt As Long

DLL

int DLDecrypt(int InstanceID);

Return values

0The document could not be decrypted
1The document was decrypted successfully