SecurityInfo

文件屬性、安全性與簽章

描述

傳回所選文件安全性設定的資訊

語法

Delphi

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

ActiveX

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

DLL

int DLSecurityInfo(int InstanceID, int SecurityItem);

參數

SecurityItem0 = 安全性方法 1 = 使用者密碼 2 = 所有者密碼 3 = 列印 4 = 變更文件 5 = 內容複製或擷取 6 = 撰寫註解與表單欄位 7 = 填寫表單欄位或簽署 8 = 啟用內容無障礙 9 = 文件組合 10 = 加密等級 11 = 以使用者密碼開啟 12 = 以所有者密碼開啟 13 = 可變加密強度

傳回值

0無
1Adobe 標準安全性
2否
3是
4完全允許
5不允許
6允許
740 位元 RC4(Acrobat 3.x、4.x)
8128 位元 RC4(Acrobat 5.x)
9未知
10低解析度
11空白
12128 位元 AES(Acrobat 7)
13256 位元 AES(Acrobat 9)
14可變長度 RC4(用 SecurityItem=13 判斷長度)
15256 位元 AES(Acrobat X)
16AES-256-GCM