EncryptionAlgorithm

Document properties, Security and Signatures

Description

Returns the encryption algorithm used to encrypt the selected document.

The EncryptionStrength function can be used to determine the encryption key length.

Syntax

Delphi

function TPDFlib.EncryptionAlgorithm: Integer;

ActiveX

Function PDFlib::EncryptionAlgorithm As Long

DLL

int DLEncryptionAlgorithm(int InstanceID);

Return values

0The document is not encrypted
1The document is encrypted using RC4 encryption 2 The document is encrypted using AES encryption