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 instance. |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string) → bool | Καλεί ChangePassword(ownerPassword, newUserPassword, newOwnerPassword) σε αυτό το PdfFileSecurity instance. |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Καλεί ChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize) σε αυτό το PdfFileSecurity instance. |
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 instance. |
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. |