SecurityInfo
文件屬性、安全性與簽章
描述
傳回所選文件安全性設定的資訊
語法
Delphi
Function TPDFlib.SecurityInfo(SecurityItem: Integer): Integer;
ActiveX
Function PDFlib::SecurityInfo(SecurityItem As Long) As Long
DLL
int DLSecurityInfo(int InstanceID, int SecurityItem);
參數
| SecurityItem | 0 = 安全性方法 1 = 使用者密碼 2 = 所有者密碼 3 = 列印 4 = 變更文件 5 = 內容複製或擷取 6 = 撰寫註解與表單欄位 7 = 填寫表單欄位或簽署 8 = 啟用內容無障礙 9 = 文件組合 10 = 加密等級 11 = 以使用者密碼開啟 12 = 以所有者密碼開啟 13 = 可變加密強度 |
|---|
傳回值
| 0 | 無 |
|---|---|
| 1 | Adobe 標準安全性 |
| 2 | 否 |
| 3 | 是 |
| 4 | 完全允許 |
| 5 | 不允許 |
| 6 | 允許 |
| 7 | 40 位元 RC4(Acrobat 3.x、4.x) |
| 8 | 128 位元 RC4(Acrobat 5.x) |
| 9 | 未知 |
| 10 | 低解析度 |
| 11 | 空白 |
| 12 | 128 位元 AES(Acrobat 7) |
| 13 | 256 位元 AES(Acrobat 9) |
| 14 | 可變長度 RC4(用 SecurityItem=13 判斷長度) |
| 15 | 256 位元 AES(Acrobat X) |
| 16 | AES-256-GCM |