PdfFileSecurity

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 นี้.
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string) → boolเรียก ChangePassword(ownerPassword, newUserPassword, newOwnerPassword) บนอินสแตนซ์ PdfFileSecurity นี้.
ChangePassword(ownerPassword: std::string, newUserPassword: std::string, newOwnerPassword: std::string, privilege: DocumentPrivilege, keySize: KeySize) → boolเรียก ChangePassword(ownerPassword, newUserPassword, newOwnerPassword, privilege, keySize) บนอินสแตนซ์ PdfFileSecurity นี้.
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 นี้.
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 นี้.

ดูเพิ่มเติม

 ภาษาไทย