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 declares 22 methods for Document objects in C++ programs. Available methods include: Decrypt, Document, EmbeddedFiles, Encrypt, Form, Info, IsEncrypted, Metadata, NamedDestinations, Optimize, OptimizeResources, Outlines, and 5 additional methods. Public members are accessible to any C++ application after installing the Aspose.PDF FOSS for C++ package. Accessor methods: Document.

Accessor Methods

NameTypeAccessDescription
DocumentDocumentReadGets the document.

Methods

SignatureDescription
Document() → DocumentCalls Document on this Document instance.
IsEncrypted() → boolReturns 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() → intCalls 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() → DocumentInfoCalls Info on this Document instance.
Metadata() → Aspose::Pdf::MetadataCalls Metadata on this Document instance.
Pages() → PageCollectionCalls Pages on this Document instance.
EmbeddedFiles() → EmbeddedFileCollectionCalls EmbeddedFiles on this Document instance.
NamedDestinations() → NamedDestinationCollectionCalls NamedDestinations on this Document instance.
Outlines() → OutlineCollectionCalls Outlines on this Document instance.
PageLabels() → PageLabelCollectionCalls PageLabels on this Document instance.
Form() → Aspose::Pdf::Forms::FormCalls Form on this Document instance.

See Also

 English