PdfFileSecurity
概述
PdfFileSecurity 是 Aspose.PDF FOSS for C++ 中的一个类。
此类提供 20 个方法,用于在 C++ 程序中处理 PdfFileSecurity 对象。可用的方法包括:AllowExceptions、BindPdf、ChangePassword、DecryptFile、EncryptFile、InputFile、OutputFile、PdfFileSecurity、SetPrivilege、TryChangePassword、TryDecryptFile、TryEncryptFile,以及另外 1 个方法。安装 Aspose.PDF FOSS for C++ 包后,所有公共成员对任何 C++ 应用程序均可访问。
方法
| 签名 | 描述 |
|---|---|
PdfFileSecurity() | 在此 PdfFileSecurity 实例上调用 PdfFileSecurity。 |
BindPdf(srcFile: std::string) | 在此 PdfFileSecurity 实例上调用 BindPdf(srcFile)。 |
EncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | 在此 PdfFileSecurity 实例上调用 EncryptFile(userPassword, ownerPassword, privilege, keySize)。 |
EncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | 在此 PdfFileSecurity 实例上调用 EncryptFile(userPassword, ownerPassword, privilege, keySize, cipher)。 |
TryEncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | 在此 PdfFileSecurity 实例上调用 TryEncryptFile(userPassword, ownerPassword, privilege, keySize)。 |
DecryptFile(ownerPassword: std::string) → bool | 在此 PdfFileSecurity 实例上调用 DecryptFile(ownerPassword)。 |
TryDecryptFile(ownerPassword: std::string) → bool | 在此 PdfFileSecurity 实例上调用 TryDecryptFile(ownerPassword)。 |
SetPrivilege(privilege: DocumentPrivilege) → bool | 设置特权值。 |
SetPrivilege(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege) → bool | 设置特权值。 |
TrySetPrivilege(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege) → bool | 在此 PdfFileSecurity 实例上调用 TrySetPrivilege(userPassword, ownerPassword, privilege)。 |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string) → bool | 在此 PdfFileSecurity 实例上调用 ChangePassword(ownerPassword, newUserPassword, newOwnerPassword)。 |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | 在此 PdfFileSecurity 实例上调用 ChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize)。 |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | 在此 PdfFileSecurity 实例上调用 ChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize, cipher)。 |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string) → bool | 在此 PdfFileSecurity 实例上调用 TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword)。 |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | 在此 PdfFileSecurity 实例上调用 TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize)。 |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | 在此 PdfFileSecurity 实例上调用 TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize, cipher)。 |
InputFile(value: std::string) | 在此 PdfFileSecurity 实例上调用 InputFile(value)。 |
OutputFile(value: std::string) | 在此 PdfFileSecurity 实例上调用 OutputFile(value). |
AllowExceptions() → bool | 在此 PdfFileSecurity 实例上调用 AllowExceptions. |
AllowExceptions(value: bool) | 在此 PdfFileSecurity 实例上调用 AllowExceptions(value). |