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。
访问器方法
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
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() | 对该 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。 |