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 函数确定所使用的加密版本