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
2No
3Yes
4Fully Allowed
5Not Allowed
6Allowed
740-bit RC4 (Acrobat 3.x, 4.x)
8128-bit RC4 (Acrobat 5.x)
9Unknown
10Low resolution
11Blank
12128-bit AES (Acrobat 7)
13256-bit AES (Acrobat 9)
14Variable length RC4 (use SecurityItem=13 to determine the length)
15256-bit AES (Acrobat X)
16AES-256-GCM