Document

概述

Document 是 Aspose.PDF FOSS for C++ 中的类。

可以通过 Document.Info() 以及访问器方法 Title()、Author()、Creator()、Producer()、Subject() 和 Keywords() 读取文档元数据。

此类为 C++ 程序中的 Document 对象提供了 22 个方法。可用的方法包括:Decrypt、Document、EmbeddedFiles、Encrypt、Form、Info、IsEncrypted、Metadata、NamedDestinations、Optimize、OptimizeResources、Outlines,以及另外 5 个方法。安装 Aspose.PDF FOSS for 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()对该 Document 实例调用 OptimizeResources。
Encrypt(userPassword: std::string, ownerPassword: std::string, privileges: Aspose::Pdf::Facades::DocumentPrivilege, cryptoAlgorithm: CryptoAlgorithm)在此 Document 实例上调用 Encrypt(userPassword, ownerPassword, privileges, cryptoAlgorithm)。
Encrypt(userPassword: std::string, ownerPassword: std::string, privileges: Aspose::Pdf::Facades::DocumentPrivilege, cryptoAlgorithm: CryptoAlgorithm, usePdf20: bool)在此 Document 实例上调用 Encrypt(userPassword, ownerPassword, privileges, cryptoAlgorithm, usePdf20)。
Decrypt()在此 Document 实例上调用 Decrypt。
Document()
Save(outputFileName: std::string)在此 Document 实例上调用 Save(outputFileName)。
Save()
SetTitle(title: std::string)设置标题值。
Info() → DocumentInfo在此 Document 实例上调用 Info。
Metadata() → Aspose::Pdf::Metadata在此 Document 实例上调用 Metadata。
Pages() → PageCollection在此 Document 实例上调用 Pages。
EmbeddedFiles() → EmbeddedFileCollection在此 Document 实例上调用 EmbeddedFiles。
NamedDestinations() → NamedDestinationCollection在此 Document 实例上调用 NamedDestinations。
Outlines() → OutlineCollection在此 Document 实例上调用 Outlines。
PageLabels() → PageLabelCollection在此 Document 实例上调用 PageLabels。
Form() → Aspose::Pdf::Forms::Form在此 Document 实例上调用 Form。

另请参阅

 中文