SecurityInfo
Document properties, Security and Signatures
Description
Returns information about the security settings of the selected document.
Syntax
Delphi
function TDebenuPDFLibrary1811.SecurityInfo(SecurityItem: Integer): Integer;
ActiveX
Function DebenuPDFLibrary1811.PDFLibrary::SecurityInfo(SecurityItem As Long) As Long
DLL
int DPLSecurityInfo(int InstanceID, int SecurityItem)
Parameters
SecurityItem |
0 = 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
0 | None |
1 | Adobe Standard Security |
2 | No |
3 | Yes |
4 | Fully Allowed |
5 | Not Allowed |
6 | Allowed |
7 | 40-bit RC4 (Acrobat 3.x, 4.x) |
8 | 128-bit RC4 (Acrobat 5.x) |
9 | Unknown |
10 | Low resolution |
11 | Blank |
12 | 128-bit AES (Acrobat 7) |
13 | 256-bit AES (Acrobat 9) |
14 | Variable length RC4 (use SecurityItem=13 to determine the length) |
15 | 256-bit AES (Acrobat X) |