Document
Overview
Document is a class in Aspose.PDF FOSS for C++.
Document metadata can be read via Document.Info() and the accessor methods Title(), Author(), Creator(), Producer(), Subject(), and Keywords().
This class provides 22 methods for working with Document objects in C++ programs.
Available methods include: Decrypt, Document, EmbeddedFiles, Encrypt, Form, Info, IsEncrypted, Metadata, NamedDestinations, Optimize, OptimizeResources, Outlines, and 5 additional methods.
All public members are accessible to any C++ application after installing the Aspose.PDF FOSS for C++ package.
Accessor methods: Document.
Accessor Methods
| Name | Type | Access | Description |
|---|---|---|---|
Document | Document | Read | Gets the document. |
Methods
| Signature | Description |
|---|---|
Document() → Document | Calls Document on this Document instance. |
IsEncrypted() → bool | Returns true if encrypted is set. |
Encrypt(userPassword: std::string, ownerPassword: std::string, permissions: Aspose::Pdf::Permissions, cryptoAlgorithm: CryptoAlgorithm) | Calls Encrypt(userPassword, ownerPassword, permissions, cryptoAlgorithm) on this Document instance. |
Encrypt(userPassword: std::string, ownerPassword: std::string, permissions: Aspose::Pdf::Permissions, cryptoAlgorithm: CryptoAlgorithm, usePdf20: bool) | Calls Encrypt(userPassword, ownerPassword, permissions, cryptoAlgorithm, usePdf20) on this Document instance. |
Permissions() → int | Calls Permissions on this Document instance. |
Optimize() | Calls Optimize on this Document instance. |
OptimizeResources() | Calls OptimizeResources on this Document instance. |
Encrypt(userPassword: std::string, ownerPassword: std::string, privileges: Aspose::Pdf::Facades::DocumentPrivilege, cryptoAlgorithm: CryptoAlgorithm) | Calls Encrypt(userPassword, ownerPassword, privileges, cryptoAlgorithm) on this Document instance. |
Encrypt(userPassword: std::string, ownerPassword: std::string, privileges: Aspose::Pdf::Facades::DocumentPrivilege, cryptoAlgorithm: CryptoAlgorithm, usePdf20: bool) | Calls Encrypt(userPassword, ownerPassword, privileges, cryptoAlgorithm, usePdf20) on this Document instance. |
Decrypt() | Calls Decrypt on this Document instance. |
Document() | |
Save(outputFileName: std::string) | Calls Save(outputFileName) on this Document instance. |
Save() | |
SetTitle(title: std::string) | Sets the title value. |
Info() → DocumentInfo | Calls Info on this Document instance. |
Metadata() → Aspose::Pdf::Metadata | Calls Metadata on this Document instance. |
Pages() → PageCollection | Calls Pages on this Document instance. |
EmbeddedFiles() → EmbeddedFileCollection | Calls EmbeddedFiles on this Document instance. |
NamedDestinations() → NamedDestinationCollection | Calls NamedDestinations on this Document instance. |
Outlines() → OutlineCollection | Calls Outlines on this Document instance. |
PageLabels() → PageLabelCollection | Calls PageLabels on this Document instance. |
Form() → Aspose::Pdf::Forms::Form | Calls Form on this Document instance. |