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. |