EncryptionStrength

Document properties, Security and Signatures

Description

If the selected document has been encrypted this function returns the encryption strength. This is the length of the key used to encrypt the contents of the document.

Syntax

Delphi

function TPDFlib.EncryptionStrength: Integer;

ActiveX

Function PDFlib::EncryptionStrength As Long

DLL

int DLEncryptionStrength(int InstanceID);

Return values

0The selected document is not encrypted The document has been encrypted with 40-bit encryption (Adobe Acrobat 3.x and 4.x) 40 The document has been encrypted with 128-bit encryption (Adobe Acrobat 5.x) 128 256 The document has been encrypted with 256-bit encryption (Acrobat 9 or Acrobat 10). Use the SecurityInfo function to determine which version of encryption was used.