PdfFileSecurity

PdfFileSecurity

Обзор

PdfFileSecurity — это класс в Aspose.PDF FOSS для C++.

Этот класс предоставляет 20 методов для работы с объектами PdfFileSecurity в C++ программах. Доступные методы включают: AllowExceptions, BindPdf, ChangePassword, DecryptFile, EncryptFile, InputFile, OutputFile, PdfFileSecurity, SetPrivilege, TryChangePassword, TryDecryptFile, TryEncryptFile и 1 дополнительный метод. Все публичные члены доступны любому C++ приложению после установки пакета Aspose.PDF FOSS для C++.

Методы

ПодписьОписание:
PdfFileSecurity()Вызывает PdfFileSecurity у данного экземпляра PdfFileSecurity.
BindPdf(srcFile: std::string)Вызывает BindPdf(srcFile) у данного экземпляра PdfFileSecurity.
EncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → boolВызывает EncryptFile(userPassword, ownerPassword, privilege, keySize) у данного экземпляра PdfFileSecurity.
EncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → boolВызывает EncryptFile(userPassword, ownerPassword, privilege, keySize, cipher) у этого экземпляра PdfFileSecurity.
TryEncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → boolВызывает TryEncryptFile(userPassword, ownerPassword, privilege, keySize) у этого экземпляра PdfFileSecurity.
DecryptFile(ownerPassword: std::string) → boolВызывает DecryptFile(ownerPassword) у этого экземпляра PdfFileSecurity.
TryDecryptFile(ownerPassword: std::string) → boolВызывает TryDecryptFile(ownerPassword) у этого экземпляра PdfFileSecurity.
SetPrivilege(privilege: DocumentPrivilege) → boolУстанавливает значение привилегии.
SetPrivilege(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege) → boolУстанавливает значение привилегии.
TrySetPrivilege(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege) → boolВызывает TrySetPrivilege(userPassword, ownerPassword, privilege) у этого экземпляра PdfFileSecurity.
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string) → boolВызывает ChangePassword(ownerPassword, newUserPassword, newOwnerPassword) у этого экземпляра PdfFileSecurity.
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → boolВызывает ChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize) у этого экземпляра PdfFileSecurity.
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → boolВыполняет вызов ChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize, cipher) у этого экземпляра PdfFileSecurity.
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string) → boolВызывает TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword) у этого экземпляра PdfFileSecurity.
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → boolВызывает TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize) у этого экземпляра PdfFileSecurity.
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → boolВызывает TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize, cipher) у этого экземпляра PdfFileSecurity.
InputFile(value: std::string)Вызывает InputFile(value) у этого экземпляра PdfFileSecurity.
OutputFile(value: std::string)Вызывает OutputFile(value) у этого экземпляра PdfFileSecurity.
AllowExceptions() → boolВызывает AllowExceptions у этого экземпляра PdfFileSecurity.
AllowExceptions(value: bool)Вызывает AllowExceptions(value) у этого экземпляра PdfFileSecurity.

См. также:

 Русский