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.

روش های دسترسی

نامنوعدسترسیتوضیح
DocumentDocumentخواندنسند را دریافت می‌کند.

روش ها

امضاتوضیح
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() → DocumentInfoInfo را بر روی این نمونهٔ Document فراخوانی می‌کند.
Metadata() → Aspose::Pdf::MetadataMetadata را بر روی این نمونهٔ Document فراخوانی می‌کند.
Pages() → PageCollectionPages را بر روی این نمونهٔ Document فراخوانی می‌کند.
EmbeddedFiles() → EmbeddedFileCollectionمتد EmbeddedFiles را بر روی این نمونه Document فراخوانی می‌کند.
NamedDestinations() → NamedDestinationCollectionمتد NamedDestinations را بر روی این نمونه Document فراخوانی می‌کند.
Outlines() → OutlineCollectionمتد Outlines را بر روی این نمونه Document فراخوانی می‌کند.
PageLabels() → PageLabelCollectionمتد PageLabels را بر روی این نمونه Document فراخوانی می‌کند.
Form() → Aspose::Pdf::Forms::Formمتد Form را بر روی این نمونه Document فراخوانی می‌کند.

همچنین ببینید:

 فارسی