PdfFileSecurity
نمای کلی
PdfFileSecurity یک کلاس در Aspose.PDF FOSS برای C++ است.
این کلاس 20 متد برای کار با اشیاء PdfFileSecurity در برنامههای C++ فراهم میکند. متدهای موجود شامل: AllowExceptions, BindPdf, ChangePassword, DecryptFile, EncryptFile, InputFile, OutputFile, PdfFileSecurity, SetPrivilege, TryChangePassword, TryDecryptFile, TryEncryptFile و 1 متد دیگر هستند. همهٔ اعضای عمومی پس از نصب بسته Aspose.PDF FOSS برای C++ برای هر برنامه 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 | در این نمونه PdfFileSecurity، TrySetPrivilege(userPassword, ownerPassword, privilege) صدا میشود. |
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 فراخوانی میکند. |