PdfFileSecurity
Prezentare generală
PdfFileSecurity este o clasă în Aspose.PDF FOSS pentru C++.
Această clasă oferă 20 de metode pentru lucrul cu obiecte PdfFileSecurity în programe C++. Metodele disponibile includ: AllowExceptions, BindPdf, ChangePassword, DecryptFile, EncryptFile, InputFile, OutputFile, PdfFileSecurity, SetPrivilege, TryChangePassword, TryDecryptFile, TryEncryptFile și 1 metodă suplimentară. Toți membrii publici sunt accesibili oricărei aplicații C++ după instalarea pachetului Aspose.PDF FOSS pentru C++.
Metode
| Semnătură | Descriere: |
|---|---|
PdfFileSecurity() | Apelează PdfFileSecurity pe această instanță PdfFileSecurity. |
BindPdf(srcFile: std::string) | Apelează BindPdf(srcFile) pe această instanță PdfFileSecurity. |
EncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Apelează EncryptFile(userPassword, ownerPassword, privilege, keySize) pe această instanță PdfFileSecurity. |
EncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | Apelează EncryptFile(userPassword, ownerPassword, privilege, keySize, cipher) pe această instanță PdfFileSecurity. |
TryEncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Apelează TryEncryptFile(userPassword, ownerPassword, privilege, keySize) pe această instanță PdfFileSecurity. |
DecryptFile(ownerPassword: std::string) → bool | Apelează DecryptFile(ownerPassword) pe această instanță PdfFileSecurity. |
TryDecryptFile(ownerPassword: std::string) → bool | Apelează TryDecryptFile(ownerPassword) pe această instanță PdfFileSecurity. |
SetPrivilege(privilege: DocumentPrivilege) → bool | Setează valoarea privilegiului. |
SetPrivilege(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege) → bool | Setează valoarea privilegiului. |
TrySetPrivilege(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege) → bool | Apelează TrySetPrivilege(userPassword, ownerPassword, privilege) pe această instanță PdfFileSecurity. |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string) → bool | Apelează ChangePassword(ownerPassword, newUserPassword, newOwnerPassword) pe această instanță PdfFileSecurity. |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Apelează ChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize) pe această instanță PdfFileSecurity. |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | Apelează ChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize, cipher) pe această instanță PdfFileSecurity. |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string) → bool | Apelează TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword) pe această instanță PdfFileSecurity. |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Apelează TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize) pe această instanță PdfFileSecurity. |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | Apelează TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize, cipher) pe această instanță PdfFileSecurity. |
InputFile(value: std::string) | Apelează InputFile(value) pe această instanță PdfFileSecurity. |
OutputFile(value: std::string) | Apelează OutputFile(value) pe această instanță PdfFileSecurity. |
AllowExceptions() → bool | Apelează AllowExceptions pe această instanță PdfFileSecurity. |
AllowExceptions(value: bool) | Apelează AllowExceptions(value) pe această instanță PdfFileSecurity. |