PdfFileSecurity
Overview
PdfFileSecurity is a class in Aspose.PDF FOSS for C++.
This class provides 20 methods for working with PdfFileSecurity objects in C++ programs.
Available methods include: AllowExceptions, BindPdf, ChangePassword, DecryptFile, EncryptFile, InputFile, OutputFile, PdfFileSecurity, SetPrivilege, TryChangePassword, TryDecryptFile, TryEncryptFile, and 1 additional methods.
All public members are accessible to any C++ application after installing the Aspose.PDF FOSS for C++ package.
Methods
| Signature | Description |
|---|---|
PdfFileSecurity() | Calls PdfFileSecurity on this PdfFileSecurity instance. |
BindPdf(srcFile: std::string) | Calls BindPdf(srcFile) on this PdfFileSecurity instance. |
EncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Calls EncryptFile(userPassword, ownerPassword, privilege, keySize) on this PdfFileSecurity instance. |
EncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | Calls EncryptFile(userPassword, ownerPassword, privilege, keySize, cipher) on this PdfFileSecurity instance. |
TryEncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Calls TryEncryptFile(userPassword, ownerPassword, privilege, keySize) on this PdfFileSecurity instance. |
DecryptFile(ownerPassword: std::string) → bool | Calls DecryptFile(ownerPassword) on this PdfFileSecurity instance. |
TryDecryptFile(ownerPassword: std::string) → bool | Calls TryDecryptFile(ownerPassword) on this PdfFileSecurity instance. |
SetPrivilege(privilege: DocumentPrivilege) → bool | Sets the privilege value. |
SetPrivilege(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege) → bool | Sets the privilege value. |
TrySetPrivilege(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege) → bool | Calls TrySetPrivilege(userPassword, ownerPassword, privilege) on this PdfFileSecurity instance. |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string) → bool | Calls ChangePassword(ownerPassword, newUserPassword, newOwnerPassword) on this PdfFileSecurity instance. |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Calls ChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize) on this PdfFileSecurity instance. |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | Calls ChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize, cipher) on this PdfFileSecurity instance. |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string) → bool | Calls TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword) on this PdfFileSecurity instance. |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Calls TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize) on this PdfFileSecurity instance. |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | Calls TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize, cipher) on this PdfFileSecurity instance. |
InputFile(value: std::string) | Calls InputFile(value) on this PdfFileSecurity instance. |
OutputFile(value: std::string) | Calls OutputFile(value) on this PdfFileSecurity instance. |
AllowExceptions() → bool | Calls AllowExceptions on this PdfFileSecurity instance. |
AllowExceptions(value: bool) | Calls AllowExceptions(value) on this PdfFileSecurity instance. |