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 นี้. |