PdfFileSecurity

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) → boolGọ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) → boolGọ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) → boolGọi TryEncryptFile(userPassword, ownerPassword, privilege, keySize) trên đối tượng PdfFileSecurity này.
DecryptFile(ownerPassword: std::string) → boolGọi DecryptFile(ownerPassword) trên đối tượng PdfFileSecurity này.
TryDecryptFile(ownerPassword: std::string) → boolGọi TryDecryptFile(ownerPassword) trên đối tượng PdfFileSecurity này.
SetPrivilege(privilege: DocumentPrivilege) → boolThiế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) → boolGọi TrySetPrivilege(userPassword, ownerPassword, privilege) trên thể hiện PdfFileSecurity này.
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string) → boolGọ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) → boolGọ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) → boolGọ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) → boolGọ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) → boolGọ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) → boolGọ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() → boolGọ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.

Xem thêm

 Tiếng Việt