PdfFileSecurity
Tổng quan
PdfFileSecurity là một lớp trong Aspose.PDF FOSS cho C++.
Lớp này cung cấp 20 phương thức để làm việc với các đối tượng PdfFileSecurity trong các chương trình C++. Các phương thức khả dụng bao gồm: AllowExceptions, BindPdf, ChangePassword, DecryptFile, EncryptFile, InputFile, OutputFile, PdfFileSecurity, SetPrivilege, TryChangePassword, TryDecryptFile, TryEncryptFile, và 1 phương thức bổ sung. Tất cả các thành viên công khai đều có thể truy cập bởi bất kỳ ứng dụng C++ nào sau khi cài đặt gói Aspose.PDF FOSS cho C++.
Phương thức
| Chữ ký | Mô tả |
|---|---|
PdfFileSecurity() | Gọi PdfFileSecurity trên đối tượng PdfFileSecurity này. |
BindPdf(srcFile: std::string) | Gọi BindPdf(srcFile) trên đối tượng PdfFileSecurity này. |
EncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Gọi EncryptFile(userPassword, ownerPassword, privilege, keySize) trên đối tượng PdfFileSecurity này. |
EncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | Gọi EncryptFile(userPassword, ownerPassword, privilege, keySize, cipher) trên đối tượng PdfFileSecurity này. |
TryEncryptFile(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Gọi TryEncryptFile(userPassword, ownerPassword, privilege, keySize) trên đối tượng PdfFileSecurity này. |
DecryptFile(ownerPassword: std::string) → bool | Gọi DecryptFile(ownerPassword) trên đối tượng PdfFileSecurity này. |
TryDecryptFile(ownerPassword: std::string) → bool | Gọi TryDecryptFile(ownerPassword) trên đối tượng PdfFileSecurity này. |
SetPrivilege(privilege: DocumentPrivilege) → bool | Thiết lập giá trị quyền. |
SetPrivilege(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege) → bool | Đặt giá trị đặc quyền. |
TrySetPrivilege(userPassword: std::string, ownerPassword: std::string, privilege: DocumentPrivilege) → bool | Gọi TrySetPrivilege(userPassword, ownerPassword, privilege) trên thể hiện PdfFileSecurity này. |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string) → bool | Gọi ChangePassword(ownerPassword, newUserPassword, newOwnerPassword) trên thể hiện PdfFileSecurity này. |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Gọi ChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize) trên thể hiện PdfFileSecurity này. |
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | Gọi ChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize, cipher) trên thể hiện PdfFileSecurity này. |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string) → bool | Gọi TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword) trên đối tượng PdfFileSecurity này. |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → bool | Gọi TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize) trên đối tượng PdfFileSecurity này. |
TryChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize, cipher: Algorithm) → bool | Gọi TryChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize, cipher) trên đối tượng PdfFileSecurity này. |
InputFile(value: std::string) | Gọi InputFile(value) trên đối tượng PdfFileSecurity này. |
OutputFile(value: std::string) | Gọi OutputFile(value) trên đối tượng PdfFileSecurity này. |
AllowExceptions() → bool | Gọi AllowExceptions trên đối tượng PdfFileSecurity này. |
AllowExceptions(value: bool) | Gọi AllowExceptions(value) trên đối tượng PdfFileSecurity này. |