EncryptionStrength

文件屬性、安全性與簽章

描述

所選文件已加密時,此函式傳回加密強度,即加密文件內容所用金鑰的長度

語法

Delphi

Function TPDFlib.EncryptionStrength: Integer;

ActiveX

Function PDFlib::EncryptionStrength() As Long

DLL

int DLEncryptionStrength(int InstanceID);

傳回值

0所選文件未加密 文件以 40 位元加密加密(Adobe Acrobat 3.x 與 4.x) 40 文件以 128 位元加密加密(Adobe Acrobat 5.x) 128 256 文件以 256 位元加密加密(Acrobat 9 或 Acrobat 10)。請用 SecurityInfo 函式判斷使用的加密版本。