SecurityInfo

Document properties, Security and Signatures

Description

Returns information about the security settings of the selected document.

Syntax

Delphi

function TPDFlib.SecurityInfo(SecurityItem: Integer): Integer;

ActiveX

Function PDFlib::SecurityInfo(SecurityItem As Long) As Long

DLL

int DLSecurityInfo(int InstanceID, int SecurityItem);

Parameters

SecurityItem0 = Security Method 1 = User Password 2 = Owner Password 3 = Printing 4 = Changing the Document 5 = Content Copying or Extraction 6 = Authoring Comments and Form Fields 7 = Form Field Fill-in or Signing 8 = Content Accessibility Enabled 9 = Document Assembly 10 = Encryption Level 11 = Opened with User password 12 = Opened with Owner password 13 = Variable Encryption Strength

Return values

0None
1Adobe Standard Security
No2
Yes3 Fully Allowed 4 Not Allowed 5 Allowed 6 40-bit RC4 (Acrobat 3.x, 4.x) 7 128-bit RC4 (Acrobat 5.x) 8 Unknown 9 Low resolution 10 Blank 11 128-bit AES (Acrobat 7) 12 256-bit AES (Acrobat 9) 13 Variable length RC4 (use SecurityItem=13 to determine the length) 14 256-bit AES (Acrobat X) 15