Document
نمای کلی
Document یک کلاس در Aspose.PDF FOSS برای C++ است.
متادیتای سند میتواند از طریق Document.Info() و روشهای دسترسی Title()، Author()، Creator()، Producer()، Subject() و Keywords() خوانده شود.
این کلاس 22 متد برای کار با اشیای Document در برنامههای C++ فراهم میکند. متدهای موجود شامل: Decrypt، Document، EmbeddedFiles، Encrypt، Form، Info، IsEncrypted، Metadata، NamedDestinations، Optimize، OptimizeResources، Outlines و 5 متد اضافی هستند. تمام اعضای عمومی پس از نصب بسته Aspose.PDF FOSS برای C++ برای هر برنامه C++ قابل دسترسی هستند. متدهای دسترسی: Document.
روش های دسترسی
| نام | نوع | دسترسی | توضیح |
|---|---|---|---|
Document | Document | خواندن | سند را دریافت میکند. |
روش ها
| امضا | توضیح |
|---|---|
Document() → Document | متد Document را بر روی این نمونه از Document فراخوانی میکند. |
IsEncrypted() → bool | در صورت تنظیم شدن encrypted، true را برمیگرداند. |
Encrypt(userPassword: std::string, ownerPassword: std::string, permissions: Aspose::Pdf::Permissions, cryptoAlgorithm: CryptoAlgorithm) | در این نمونه Document، متد Encrypt(userPassword, ownerPassword, permissions, cryptoAlgorithm) را فراخوانی میکند. |
Encrypt(userPassword: std::string, ownerPassword: std::string, permissions: Aspose::Pdf::Permissions, cryptoAlgorithm: CryptoAlgorithm, usePdf20: bool) | در این نمونه Document، متد Encrypt(userPassword, ownerPassword, permissions, cryptoAlgorithm, usePdf20) را فراخوانی میکند. |
Permissions() → int | در این نمونه Document، متد Permissions را فراخوانی میکند. |
Optimize() | در این نمونه Document، متد Optimize را فراخوانی میکند. |
OptimizeResources() | متد OptimizeResources را بر روی این نمونه Document فراخوانی میکند. |
Encrypt(userPassword: std::string, ownerPassword: std::string, privileges: Aspose::Pdf::Facades::DocumentPrivilege, cryptoAlgorithm: CryptoAlgorithm) | متد Encrypt(userPassword, ownerPassword, privileges, cryptoAlgorithm) را بر روی این نمونه Document فراخوانی میکند. |
Encrypt(userPassword: std::string, ownerPassword: std::string, privileges: Aspose::Pdf::Facades::DocumentPrivilege, cryptoAlgorithm: CryptoAlgorithm, usePdf20: bool) | متد Encrypt(userPassword, ownerPassword, privileges, cryptoAlgorithm, usePdf20) را بر روی این نمونهٔ Document فراخوانی میکند. |
Decrypt() | متد Decrypt را بر روی این نمونهٔ Document فراخوانی میکند. |
Document() | |
Save(outputFileName: std::string) | متد Save(outputFileName) را بر روی این نمونهٔ Document فراخوانی میکند. |
Save() | |
SetTitle(title: std::string) | مقدار عنوان را تنظیم میکند. |
Info() → DocumentInfo | Info را بر روی این نمونهٔ Document فراخوانی میکند. |
Metadata() → Aspose::Pdf::Metadata | Metadata را بر روی این نمونهٔ Document فراخوانی میکند. |
Pages() → PageCollection | Pages را بر روی این نمونهٔ Document فراخوانی میکند. |
EmbeddedFiles() → EmbeddedFileCollection | متد EmbeddedFiles را بر روی این نمونه Document فراخوانی میکند. |
NamedDestinations() → NamedDestinationCollection | متد NamedDestinations را بر روی این نمونه Document فراخوانی میکند. |
Outlines() → OutlineCollection | متد Outlines را بر روی این نمونه Document فراخوانی میکند. |
PageLabels() → PageLabelCollection | متد PageLabels را بر روی این نمونه Document فراخوانی میکند. |
Form() → Aspose::Pdf::Forms::Form | متد Form را بر روی این نمونه Document فراخوانی میکند. |