PdfFileSecurity
Översikt
PdfFileSecurity är en klass i Aspose.PDF FOSS för C++.
Denna klass tillhandahåller 20 metoder för att arbeta med PdfFileSecurity-objekt i C++-program. Tillgängliga metoder inkluderar: AllowExceptions, BindPdf, ChangePassword, DecryptFile, EncryptFile, InputFile, OutputFile, PdfFileSecurity, SetPrivilege, TryChangePassword, TryDecryptFile, TryEncryptFile och 1 ytterligare metod. Alla offentliga medlemmar är tillgängliga för alla C++-applikationer efter att ha installerat Aspose.PDF FOSS för C++-paketet.
Metoder
| Signatur | Beskrivning |
|---|---|
PdfFileSecurity() | Anropar PdfFileSecurity på denna PdfFileSecurity instans. |
BindPdf(srcFile: std::string) | Anropar BindPdf(srcFile) på denna PdfFileSecurity instans. |
EncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Anropar EncryptFile(userPassword, ownerPassword, privilege, keySize) på denna PdfFileSecurity instans. |
EncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | Anropar EncryptFile(userPassword, ownerPassword, privilege, keySize, cipher) på denna PdfFileSecurity instans. |
TryEncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Anropar TryEncryptFile(userPassword, ownerPassword, privilege, keySize) på denna PdfFileSecurity-instans. |
DecryptFile(ownerPassword: std::string) → bool | Anropar DecryptFile(ownerPassword) på denna PdfFileSecurity-instans. |
TryDecryptFile(ownerPassword: std::string) → bool | Anropar TryDecryptFile(ownerPassword) på denna PdfFileSecurity-instans. |
SetPrivilege(privilege: DocumentPrivilege) → bool | Ställer in privilegievärdet. |
SetPrivilege(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege) → bool | Ställer in rättighetsvärdet. |
TrySetPrivilege(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege) → bool | Anropar TrySetPrivilege(userPassword, ownerPassword, privilege) på denna PdfFileSecurity-instans. |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string) → bool | Anropar ChangePassword(ownerPassword, newUserPassword, newOwnerPassword) på denna PdfFileSecurity-instans. |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Anropar ChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize) på denna PdfFileSecurity-instans. |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | Anropar ChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize, cipher) på denna PdfFileSecurity-instans. |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string) → bool | Anropar TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword) på detta PdfFileSecurity-instans. |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Anropar TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize) på detta PdfFileSecurity-instans. |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | Anropar TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize, cipher) på detta PdfFileSecurity-instans. |
InputFile(value: std::string) | Anropar InputFile(value) på detta PdfFileSecurity-instans. |
OutputFile(value: std::string) | Anropar OutputFile(value) på denna PdfFileSecurity-instans. |
AllowExceptions() → bool | Anropar AllowExceptions på denna PdfFileSecurity-instans. |
AllowExceptions(value: bool) | Anropar AllowExceptions(value) på denna PdfFileSecurity-instans. |