PdfFileSecurity
Przegląd
PdfFileSecurity jest klasą w Aspose.PDF FOSS dla C++.
Ta klasa udostępnia 20 metod do pracy z obiektami PdfFileSecurity w programach C++. Dostępne metody to: AllowExceptions, BindPdf, ChangePassword, DecryptFile, EncryptFile, InputFile, OutputFile, PdfFileSecurity, SetPrivilege, TryChangePassword, TryDecryptFile, TryEncryptFile oraz 1 dodatkowa metoda. Wszystkie publiczne członki są dostępne dla każdej aplikacji C++ po zainstalowaniu pakietu Aspose.PDF FOSS dla C++.
Metody
| Sygnatura | Opis |
|---|---|
PdfFileSecurity() | Wywołuje PdfFileSecurity na tej instancji PdfFileSecurity. |
BindPdf(srcFile: std::string) | Wywołuje BindPdf(srcFile) na tej instancji PdfFileSecurity. |
EncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Wywołuje EncryptFile(userPassword, ownerPassword, privilege, keySize) na tej instancji PdfFileSecurity. |
EncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | Wywołuje EncryptFile(userPassword, ownerPassword, privilege, keySize, cipher) na tej instancji PdfFileSecurity. |
TryEncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Wywołuje TryEncryptFile(userPassword, ownerPassword, privilege, keySize) na tej PdfFileSecurity instancji. |
DecryptFile(ownerPassword: std::string) → bool | Wywołuje DecryptFile(ownerPassword) na tej PdfFileSecurity instancji. |
TryDecryptFile(ownerPassword: std::string) → bool | Wywołuje TryDecryptFile(ownerPassword) na tej PdfFileSecurity instancji. |
SetPrivilege(privilege: DocumentPrivilege) → bool | Ustawia wartość przywileju. |
SetPrivilege(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege) → bool | Ustawia wartość uprawnienia. |
TrySetPrivilege(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege) → bool | Wywołuje TrySetPrivilege(userPassword, ownerPassword, privilege) na tej instancji PdfFileSecurity. |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string) → bool | Wywołuje ChangePassword(ownerPassword, newUserPassword, newOwnerPassword) na tej instancji PdfFileSecurity. |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Wywołuje ChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize) na tej instancji PdfFileSecurity. |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | Wywołuje ChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize, cipher) na tej instancji PdfFileSecurity. |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string) → bool | Wywołuje TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword) na tej instancji PdfFileSecurity. |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Wywołuje TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize) na tej instancji PdfFileSecurity. |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | Wywołuje TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize, cipher) na tej instancji PdfFileSecurity. |
InputFile(value: std::string) | Wywołuje InputFile(value) na tej instancji PdfFileSecurity. |
OutputFile(value: std::string) | Wywołuje OutputFile(value) na tej instancji PdfFileSecurity. |
AllowExceptions() → bool | Wywołuje AllowExceptions na tej instancji PdfFileSecurity. |
AllowExceptions(value: bool) | Wywołuje AllowExceptions(value) na tej instancji PdfFileSecurity. |