PdfFileSecurity

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

SignatureDescription
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)boolCalls EncryptFile(userPassword, ownerPassword, privilege, keySize) on this PdfFileSecurity instance.
EncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm)boolCalls EncryptFile(userPassword, ownerPassword, privilege, keySize, cipher) on this PdfFileSecurity instance.
TryEncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize)boolCalls TryEncryptFile(userPassword, ownerPassword, privilege, keySize) on this PdfFileSecurity instance.
DecryptFile(ownerPassword: std::string)boolCalls DecryptFile(ownerPassword) on this PdfFileSecurity instance.
TryDecryptFile(ownerPassword: std::string)boolCalls TryDecryptFile(ownerPassword) on this PdfFileSecurity instance.
SetPrivilege(privilege: DocumentPrivilege)boolSets the privilege value.
SetPrivilege(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege)boolSets the privilege value.
TrySetPrivilege(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege)boolCalls TrySetPrivilege(userPassword, ownerPassword, privilege) on this PdfFileSecurity instance.
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string)boolCalls ChangePassword(ownerPassword, newUserPassword, newOwnerPassword) on this PdfFileSecurity instance.
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize)boolCalls 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)boolCalls ChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize, cipher) on this PdfFileSecurity instance.
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string)boolCalls TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword) on this PdfFileSecurity instance.
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize)boolCalls 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)boolCalls 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()boolCalls AllowExceptions on this PdfFileSecurity instance.
AllowExceptions(value: bool)Calls AllowExceptions(value) on this PdfFileSecurity instance.

See Also