Class representing PDF document More...

#include "Document.h"

Inherits System::IDisposable, Aspose::Pdf::ISupportsMemoryCleanup, and Aspose::Pdf::LicenseManagement::IVentureLicenseTarget.

Classes

class  CutByRestrictionWrapper
 
class  IDocumentFontUtilities
 Holds functionality to tune fonts More...
 
class  MergeOptions
 Represents the options to Merge methods. More...
 
class  OptimizationOptions
 Class which describes document optimization algorithm. Instance of this class may be used as parameter of OptimizeResources() method. More...
 

Public Types

using FontSubstitutionHandler = System::MulticastDelegate< void(System::SharedPtr< Text::Font >, System::SharedPtr< Text::Font >)>
 Represents the method that will handle FontSubstitution event. More...
 
using CallBackGetHocr = System::MulticastDelegate< System::String(System::SharedPtr< System::Drawing::Image >)>
 The call back procedure for hocr recognize. More...
 
using CallBackGetHocrWithPage = System::MulticastDelegate< System::String(System::SharedPtr< System::Drawing::Image >, System::SharedPtr< Page >)>
 The call back procedure for hocr recognize. More...
 
- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 

Public Member Functions

ASPOSE_PDF_SHARED_API System::SharedPtr< JavaScriptCollectionget_JavaScript ()
 Collection of JavaScript of document level. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::OutputIntentsget_OutputIntents ()
 Gets the collection of Output intents in the document. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::PageInfoget_PageInfo ()
 Gets the page info.(for generator only, not filled in when reading document) More...
 
ASPOSE_PDF_SHARED_API void set_PageInfo (System::SharedPtr< Aspose::Pdf::PageInfo > value)
 Sets the page info.(for generator only, not filled in when reading document) More...
 
ASPOSE_PDF_SHARED_API bool get_EnableSignatureSanitization () const
 Gets flag to manage signature fields sanitization. Enabled by default. More...
 
ASPOSE_PDF_SHARED_API void set_EnableSignatureSanitization (bool value)
 Sets flag to manage signature fields sanitization. Enabled by default. More...
 
ASPOSE_PDF_SHARED_API bool get_IsPdfaCompliant ()
 Gets the is document pdfa compliant. More...
 
ASPOSE_PDF_SHARED_API bool get_IsPdfUaCompliant ()
 Gets the is document pdfua compliant. More...
 
ASPOSE_PDF_SHARED_API bool get_IsXrefGapsAllowed ()
 Gets the is document pdfa compliant. More...
 
ASPOSE_PDF_SHARED_API void set_IsXrefGapsAllowed (bool value)
 Sets the is document pdfa compliant. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< NamedDestinationCollectionget_NamedDestinations ()
 Collection of Named Destination in the document. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< DestinationCollectionget_Destinations ()
 Gets the collection of destinations. Obsolete. Please use NamedDestinations. More...
 
ASPOSE_PDF_SHARED_API Aspose::Pdf::PdfFormat get_PdfFormat ()
 Gets PDF format More...
 
ASPOSE_PDF_SHARED_API bool get_EmbedStandardFonts () const
 Property which declares that document must embed all standard Type1 fonts which has flag IsEmbedded set into true. All PDF fonts can be embedded into document simply via setting of flag IsEmbedded into true, but PDF standard Type1 fonts is an exception from this rule. Standard Type1 font embedding requires much time, so to embed these fonts it's necessary not only set flag IsEmbedded into true for specified font but also set an additiona flag on document's level - EmbedStandardFonts = true; This property can be set only one time for all fonts. By default false. More...
 
ASPOSE_PDF_SHARED_API void set_EmbedStandardFonts (bool value)
 Property which declares that document must embed all standard Type1 fonts which has flag IsEmbedded set into true. All PDF fonts can be embedded into document simply via setting of flag IsEmbedded into true, but PDF standard Type1 fonts is an exception from this rule. Standard Type1 font embedding requires much time, so to embed these fonts it's necessary not only set flag IsEmbedded into true for specified font but also set an additiona flag on document's level - EmbedStandardFonts = true; This property can be set only one time for all fonts. By default false. More...
 
ASPOSE_PDF_SHARED_API bool get_DisableFontLicenseVerifications () const
 Many operations with font can't be executed if these operations are prohibited by license of this font. For example some font can't be embedded into PDF document if license rules disable embedding for this font. This flag is used to disable any license restrictions for all fonts in current PDF document. Be careful when using this flag. When it is set it means that person who sets this flag, takes all responsibility of possible license/law violations on himself. So He takes it on it's own risk. It's strongly recommended to use this flag only when you are fully confident that you are not breaking the copyright law. By default false. More...
 
ASPOSE_PDF_SHARED_API void set_DisableFontLicenseVerifications (bool value)
 Many operations with font can't be executed if these operations are prohibited by license of this font. For example some font can't be embedded into PDF document if license rules disable embedding for this font. This flag is used to disable any license restrictions for all fonts in current PDF document. Be careful when using this flag. When it is set it means that person who sets this flag, takes all responsibility of possible license/law violations on himself. So He takes it on it's own risk. It's strongly recommended to use this flag only when you are fully confident that you are not breaking the copyright law. By default false. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Document::IDocumentFontUtilitiesget_FontUtilities ()
 IDocumentFontUtilities instance More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Collectionget_Collection ()
 Gets collection of document. More...
 
ASPOSE_PDF_SHARED_API void set_Collection (System::SharedPtr< Aspose::Pdf::Collection > value)
 Gets collection of document. More...
 
ASPOSE_PDF_SHARED_API System::String get_Version ()
 Gets a version of Pdf from Pdf file header. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Annotations::IAppointmentget_OpenAction ()
 Gets action performed at document opening. More...
 
ASPOSE_PDF_SHARED_API void set_OpenAction (System::SharedPtr< Annotations::IAppointment > value)
 Sets action performed at document opening. More...
 
ASPOSE_PDF_SHARED_API bool get_HideToolBar ()
 Gets flag specifying whether toolbar should be hidden when document is active. More...
 
ASPOSE_PDF_SHARED_API void set_HideToolBar (bool value)
 Sets flag specifying whether toolbar should be hidden when document is active. More...
 
ASPOSE_PDF_SHARED_API bool get_HideMenubar ()
 Gets flag specifying whether menu bar should be hidden when document is active. More...
 
ASPOSE_PDF_SHARED_API void set_HideMenubar (bool value)
 Sets flag specifying whether menu bar should be hidden when document is active. More...
 
ASPOSE_PDF_SHARED_API bool get_HideWindowUI ()
 Gets flag specifying whether user interface elements should be hidden when document is active. More...
 
ASPOSE_PDF_SHARED_API void set_HideWindowUI (bool value)
 Sets flag specifying whether user interface elements should be hidden when document is active. More...
 
ASPOSE_PDF_SHARED_API bool get_FitWindow ()
 Gets flag specifying whether document window must be resized to fit the first displayed page. More...
 
ASPOSE_PDF_SHARED_API void set_FitWindow (bool value)
 Sets flag specifying whether document window must be resized to fit the first displayed page. More...
 
ASPOSE_PDF_SHARED_API bool get_CenterWindow ()
 Gets flag specifying whether position of the document's window will be centerd on the screen. More...
 
ASPOSE_PDF_SHARED_API void set_CenterWindow (bool value)
 Sets flag specifying whether position of the document's window will be centerd on the screen. More...
 
ASPOSE_PDF_SHARED_API bool get_DisplayDocTitle ()
 Gets flag specifying whether document's window title bar should display document title. More...
 
ASPOSE_PDF_SHARED_API void set_DisplayDocTitle (bool value)
 Sets flag specifying whether document's window title bar should display document title. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< PageCollectionget_Pages ()
 Gets collection of document pages. Note that pages are numbered from 1 in collection. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< OutlineCollectionget_Outlines ()
 Gets document outlines. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Annotations::DocumentActionCollectionget_Actions ()
 Gets document actions. This property is instance of DocumentActions class which allows to get/set BeforClosing, BeforSaving, etc. actions. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Forms::Formget_Form ()
 Gets Acro Form of the document. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< EmbeddedFileCollectionget_EmbeddedFiles ()
 Gets collection of files embedded to document. More...
 
ASPOSE_PDF_SHARED_API Aspose::Pdf::Direction get_Direction ()
 Gets reading order of text: L2R (left to right) or R2L (right to left). More...
 
ASPOSE_PDF_SHARED_API void set_Direction (Aspose::Pdf::Direction value)
 Sets reading order of text: L2R (left to right) or R2L (right to left). More...
 
ASPOSE_PDF_SHARED_API Aspose::Pdf::PageMode get_PageMode ()
 Gets page mode, specifying how document should be displayed when opened. More...
 
ASPOSE_PDF_SHARED_API void set_PageMode (Aspose::Pdf::PageMode value)
 Sets page mode, specifying how document should be displayed when opened. More...
 
ASPOSE_PDF_SHARED_API Aspose::Pdf::PageMode get_NonFullScreenPageMode ()
 Gets page mode, specifying how to display the document on exiting full-screen mode. More...
 
ASPOSE_PDF_SHARED_API void set_NonFullScreenPageMode (Aspose::Pdf::PageMode value)
 Sets page mode, specifying how to display the document on exiting full-screen mode. More...
 
ASPOSE_PDF_SHARED_API Aspose::Pdf::PageLayout get_PageLayout ()
 Gets page layout which shall be used when the document is opened. More...
 
ASPOSE_PDF_SHARED_API void set_PageLayout (Aspose::Pdf::PageLayout value)
 Sets page layout which shall be used when the document is opened. More...
 
ASPOSE_PDF_SHARED_API PrintDuplex get_Duplex ()
 Gets print duplex mode handling option to use when printing the file from the print dialog. More...
 
ASPOSE_PDF_SHARED_API void set_Duplex (PrintDuplex value)
 Sets print duplex mode handling option to use when printing the file from the print dialog. More...
 
ASPOSE_PDF_SHARED_API Aspose::Pdf::PrintScaling get_PrintScaling ()
 Gets the page scaling option that shall be selected when a print dialog is displayed for this document. More...
 
ASPOSE_PDF_SHARED_API void set_PrintScaling (Aspose::Pdf::PrintScaling value)
 Sets the page scaling option that shall be selected when a print dialog is displayed for this document. More...
 
ASPOSE_PDF_SHARED_API System::String get_FileName ()
 Name of the PDF file that caused this document More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< DocumentInfoget_Info ()
 Gets document info. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Metadataget_Metadata ()
 Document metadata. (A PDF document may include general information, such as the document's title, author, and creation and modification dates. Such global information about the document (as opposed to its content or structure) is called metadata and is intended to assist in cataloguing and searching for documents in external databases.) More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Structure::RootElementget_LogicalStructure ()
 Gets logical structure of the document. More...
 
ASPOSE_PDF_SHARED_API bool get_HandleSignatureChange () const
 Throw Exception if the document will save with changes and have signature More...
 
ASPOSE_PDF_SHARED_API void set_HandleSignatureChange (bool value)
 Throw Exception if the document will save with changes and have signature More...
 
ASPOSE_PDF_SHARED_API System::Nullable< Aspose::Pdf::CryptoAlgorithmget_CryptoAlgorithm ()
 Gets security settings if document is encrypted. If document is not encrypted then corresponding exception will be raised in .net 1.1 or CryptoAlgorithm will be null for other .net versions. More...
 
ASPOSE_PDF_SHARED_API bool get_IsLinearized ()
 Gets a value indicating whether document is linearized. More...
 
ASPOSE_PDF_SHARED_API void set_IsLinearized (bool value)
 Sets a value indicating whether document is linearized. More...
 
ASPOSE_PDF_SHARED_API int32_t get_Permissions ()
 Gets permissions of the document. More...
 
ASPOSE_PDF_SHARED_API bool get_IsEncrypted ()
 Gets encrypted status of the document. True if document is encrypted. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Aspose::Pdf::Idget_Id ()
 Gets the ID. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Colorget_Background ()
 Gets the background color of the document. More...
 
ASPOSE_PDF_SHARED_API void set_Background (System::SharedPtr< Color > value)
 Sets the background color of the document. More...
 
ASPOSE_PDF_SHARED_API bool get_OptimizeSize ()
 Gets optimization flag. When pages are added to document, equal resource streams in resultant file are merged into one PDF object if this flag set. This allows to decrease resultant file size but may cause slower execution and larger memory requirements. Default value: false. More...
 
ASPOSE_PDF_SHARED_API void set_OptimizeSize (bool value)
 Sets optimization flag. When pages are added to document, equal resource streams in resultant file are merged into one PDF object if this flag set. This allows to decrease resultant file size but may cause slower execution and larger memory requirements. Default value: false. More...
 
ASPOSE_PDF_SHARED_API bool get_AllowReusePageContent ()
 Allows to merge page contents to optimize docuement size. If used then differnet but duplicated pages may reference to the same content object. Please note that this mode may cause side effects like changing page content when other page is changed. More...
 
ASPOSE_PDF_SHARED_API void set_AllowReusePageContent (bool value)
 Allows to merge page contents to optimize docuement size. If used then differnet but duplicated pages may reference to the same content object. Please note that this mode may cause side effects like changing page content when other page is changed. More...
 
ASPOSE_PDF_SHARED_API bool get_IgnoreCorruptedObjects ()
 Gets flag of ignoring errors in source files. When pages from source document copied into destination document, copying process is stopped with exception if some objects in source files are corrupted when this flag is false. example: dest.Pages.Add(src.Pages); If this flag is set to true then corrupted objects will be replaced with empty values. By default: true. More...
 
ASPOSE_PDF_SHARED_API void set_IgnoreCorruptedObjects (bool value)
 Sets flag of ignoring errors in source files. When pages from source document copied into destination document, copying process is stopped with exception if some objects in source files are corrupted when this flag is false. example: dest.Pages.Add(src.Pages); If this flag is set to true then corrupted objects will be replaced with empty values. By default: true. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< PageLabelCollectionget_PageLabels ()
 Gets page labels in the document. More...
 
ASPOSE_PDF_SHARED_API bool get_EnableObjectUnload ()
 Get or sets flag which enables document partially be unloaded from memory. This allow to decrease memory usage but may have negative effect on perfomance. More...
 
ASPOSE_PDF_SHARED_API void set_EnableObjectUnload (bool value)
 Get or sets flag which enables document partially be unloaded from memory. This allow to decrease memory usage but may have negative effect on perfomance. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< Tagged::ITaggedContentget_TaggedContent ()
 
ASPOSE_PDF_SHARED_API void RemovePdfaCompliance ()
 Remove pdfa compliance from the document More...
 
ASPOSE_PDF_SHARED_API void RemovePdfUaCompliance ()
 Remove pdfUa compliance from the document More...
 
ASPOSE_PDF_SHARED_API void SetTitle (System::String title)
 Set Title for Pdf Document More...
 
ASPOSE_PDF_SHARED_API Document (System::SharedPtr< System::IO::Stream > input)
 Initialize new Document instance from the input stream. More...
 
ASPOSE_PDF_SHARED_API Document (System::SharedPtr< System::IO::Stream > input, System::String password, bool isManagedStream)
 Initialize new Document instance from the input stream. More...
 
ASPOSE_PDF_SHARED_API Document (System::SharedPtr< System::IO::Stream > input, bool isManagedStream)
 Initialize new Document instance from the input stream. More...
 
ASPOSE_PDF_SHARED_API Document (System::String filename)
 Just init Document using filename . The same as Document(Stream). More...
 
ASPOSE_PDF_SHARED_API Document (System::SharedPtr< System::IO::Stream > input, System::String password)
 Initialize new Document instance from the input stream. More...
 
ASPOSE_PDF_SHARED_API Document ()
 Initializes empty document. More...
 
ASPOSE_PDF_SHARED_API Document (System::String filename, System::String password)
 Initializes new instance of the Document class for working with encrypted document. More...
 
ASPOSE_PDF_SHARED_API Document (System::String filename, System::String password, bool isManagedStream)
 Initializes new instance of the Document class for working with encrypted document. More...
 
ASPOSE_PDF_SHARED_API void ProcessParagraphs ()
 Process paragraphs for generator. More...
 
ASPOSE_PDF_SHARED_API void Save (System::SharedPtr< System::IO::Stream > output)
 Stores document into stream. More...
 
ASPOSE_PDF_SHARED_API void Save (System::String outputFileName)
 Saves document into the specified file. More...
 
ASPOSE_PDF_SHARED_API void ExportAnnotationsToXfdf (System::String fileName)
 Exports all document annotations to XFDF file More...
 
ASPOSE_PDF_SHARED_API void ExportAnnotationsToXfdf (System::SharedPtr< System::IO::Stream > stream)
 Export all document annotations into stream. More...
 
ASPOSE_PDF_SHARED_API void SendTo (System::SharedPtr< Devices::DocumentDevice > device, System::SharedPtr< System::IO::Stream > output)
 Sends the whole document to the document device for processing. More...
 
ASPOSE_PDF_SHARED_API void SendTo (System::SharedPtr< Devices::DocumentDevice > device, int32_t fromPage, int32_t toPage, System::SharedPtr< System::IO::Stream > output)
 Sends the certain pages of the document to the document device for processing. More...
 
ASPOSE_PDF_SHARED_API void SendTo (System::SharedPtr< Devices::DocumentDevice > device, System::String outputFileName)
 Sends the whole document to the document device for processing. More...
 
ASPOSE_PDF_SHARED_API void SendTo (System::SharedPtr< Devices::DocumentDevice > device, int32_t fromPage, int32_t toPage, System::String outputFileName)
 Sends the whole document to the document device for processing. More...
 
ASPOSE_PDF_SHARED_API void RemoveMetadata ()
 Removes metadata from the document. More...
 
ASPOSE_PDF_SHARED_API void ImportAnnotationsFromXfdf (System::String fileName)
 Imports annotations from XFDF file to document. More...
 
ASPOSE_PDF_SHARED_API void ImportAnnotationsFromXfdf (System::SharedPtr< System::IO::Stream > stream)
 Imports annotations from stream to document. More...
 
ASPOSE_PDF_SHARED_API bool Validate (System::String outputLogFileName, Aspose::Pdf::PdfFormat format)
 Validate document into the specified file. More...
 
ASPOSE_PDF_SHARED_API bool Convert (System::String outputLogFileName, Aspose::Pdf::PdfFormat format, ConvertErrorAction action, ConvertTransparencyAction transparencyAction)
 Convert document and save errors into the specified file. More...
 
ASPOSE_PDF_SHARED_API bool Convert (System::SharedPtr< System::IO::Stream > outputLogStream, Aspose::Pdf::PdfFormat format, ConvertErrorAction action, ConvertTransparencyAction transparencyAction)
 Convert document and save errors into the specified file. More...
 
ASPOSE_PDF_SHARED_API bool Convert (System::String outputLogFileName, Aspose::Pdf::PdfFormat format, ConvertErrorAction action)
 Convert document and save errors into the specified file. More...
 
ASPOSE_PDF_SHARED_API bool Convert (System::SharedPtr< PdfFormatConversionOptions > options)
 Convert document using specified conversion options More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< System::IO::MemoryStreamConvertPageToPNGMemoryStream (System::SharedPtr< Page > page)
 Convert page to PNG for DSR, OMR, OCR image stream. More...
 
ASPOSE_PDF_SHARED_API bool Validate (System::SharedPtr< System::IO::Stream > outputLogStream, Aspose::Pdf::PdfFormat format)
 Validate document into the specified file. More...
 
ASPOSE_PDF_SHARED_API bool Validate (System::SharedPtr< PdfFormatConversionOptions > options)
 Validate document into the specified file. More...
 
ASPOSE_PDF_SHARED_API bool Convert (Document::CallBackGetHocrWithPage callback, bool flattenImages=false)
 Recognize images inside the document and add hocr strings over it. More...
 
ASPOSE_PDF_SHARED_API bool Convert (Document::CallBackGetHocr callback, bool flattenImages=false)
 Recognize images inside the document and add hocr strings over it. More...
 
ASPOSE_PDF_SHARED_API bool Convert (System::SharedPtr< System::IO::Stream > outputLogStream, Aspose::Pdf::PdfFormat format, ConvertErrorAction action)
 Convert document and save errors into the specified stream. More...
 
ASPOSE_PDF_SHARED_API bool Convert (Fixup fixup, System::SharedPtr< System::IO::Stream > outputLog, bool onlyValidation=false, System::ArrayPtr< System::SharedPtr< System::Object >> parameters=nullptr)
 Convert document by applying the Fixup. More...
 
ASPOSE_PDF_SHARED_API bool Convert (Fixup fixup, System::String outputLog, bool onlyValidation=false, System::ArrayPtr< System::SharedPtr< System::Object >> parameters=nullptr)
 Convert document by applying the Fixup. More...
 
ASPOSE_PDF_SHARED_API void LoadFrom (System::String filename, System::SharedPtr< LoadOptions > options)
 Loads a file, converting it to PDF. More...
 
ASPOSE_PDF_SHARED_API Document (System::String filename, System::SharedPtr< LoadOptions > options)
 Opens an existing document from a file providing necessary converting options to get pdf document. More...
 
ASPOSE_PDF_SHARED_API Document (System::SharedPtr< System::IO::Stream > input, System::SharedPtr< LoadOptions > options)
 Opens an existing document from a stream providing necessary converting to get pdf document. More...
 
ASPOSE_PDF_SHARED_API void Flatten ()
 Removes all fields from the document and place their values instead. More...
 
ASPOSE_PDF_SHARED_API void Flatten (System::SharedPtr< Aspose::Pdf::Forms::Form::FlattenSettings > flattenSettings)
 Removes all fields (and annotations) from the document and place their values instead. More...
 
ASPOSE_PDF_SHARED_API void FlattenTransparency ()
 Replaces transparent content with non-transparent raster and vector graphics. More...
 
ASPOSE_PDF_SHARED_API void Encrypt (System::String userPassword, System::String ownerPassword, System::SharedPtr< Facades::DocumentPrivilege > privileges, Aspose::Pdf::CryptoAlgorithm cryptoAlgorithm, bool usePdf20)
 Encrypts the document. Call then Save to get encrypted version of the document. More...
 
ASPOSE_PDF_SHARED_API void Encrypt (System::String userPassword, System::String ownerPassword, Aspose::Pdf::Permissions permissions, Aspose::Pdf::CryptoAlgorithm cryptoAlgorithm)
 Encrypts the document. Call then Save to get encrypted version of the document. More...
 
ASPOSE_PDF_SHARED_API void Encrypt (System::String userPassword, System::String ownerPassword, Aspose::Pdf::Permissions permissions, Aspose::Pdf::CryptoAlgorithm cryptoAlgorithm, bool usePdf20)
 Encrypts the document. Call then Save to get encrypted version of the document. More...
 
ASPOSE_PDF_SHARED_API void ChangePasswords (System::String ownerPassword, System::String newUserPassword, System::String newOwnerPassword)
 Changes document passwords. This action can be done only using owner password. More...
 
ASPOSE_PDF_SHARED_API void Decrypt ()
 Decrypts the document. Call then Save to obtain decrypted version of the document. More...
 
ASPOSE_PDF_SHARED_API void Optimize ()
 Linearize the document in order to More...
 
ASPOSE_PDF_SHARED_API void Save ()
 Save document incrementally (i.e. using incremental update technique). More...
 
ASPOSE_PDF_SHARED_API void Save (System::SharedPtr< SaveOptions > options)
 Saves the document with save options. More...
 
ASPOSE_PDF_SHARED_API void Save (System::String outputFileName, SaveFormat format)
 Saves the document with a new name along with a file format. More...
 
ASPOSE_PDF_SHARED_API void Save (System::SharedPtr< System::IO::Stream > outputStream, SaveFormat format)
 Saves the document with a new name along with a file format. More...
 
ASPOSE_PDF_SHARED_API void Save (System::String outputFileName, System::SharedPtr< SaveOptions > options)
 Saves the document with a new name setting its save options. More...
 
ASPOSE_PDF_SHARED_API void Save (System::SharedPtr< System::IO::Stream > outputStream, System::SharedPtr< SaveOptions > options)
 Saves the document to a stream with a save options. More...
 
ASPOSE_PDF_SHARED_API void Save (System::SharedPtr< System::Web::HttpResponse > response, System::String outputFileName, ContentDisposition disposition, System::SharedPtr< SaveOptions > options)
 Saves the document to a response stream with a save options. More...
 
ASPOSE_PDF_SHARED_API void Dispose () override
 Closes all resources used by this document. More...
 
ASPOSE_PDF_SHARED_API void OptimizeResources ()
 Optimize resources in the document: More...
 
ASPOSE_PDF_SHARED_API void OptimizeResources (System::SharedPtr< Aspose::Pdf::Optimization::OptimizationOptions > strategy)
 Optimize resources in the document according to defined optimization strategy. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< System::ObjectGetCatalogValue (System::String key)
 Returns item value from catalog dictionary. More...
 
ASPOSE_PDF_SHARED_API void FreeMemory () override
 Clears memory More...
 
ASPOSE_PDF_SHARED_API void SaveXml (System::String file)
 Save document to XML. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< System::ObjectGetObjectById (System::String id)
 Gets a object with specified ID in the document. More...
 
ASPOSE_PDF_SHARED_API void BindXml (System::String file)
 Bind xml to document More...
 
ASPOSE_PDF_SHARED_API void Repair ()
 Repairs broken document. More...
 
ASPOSE_PDF_SHARED_API void BindXml (System::String xmlFile, System::String xslFile)
 Bind xml/xsl to document More...
 
ASPOSE_PDF_SHARED_API void BindXml (System::SharedPtr< System::IO::Stream > xmlStream, System::SharedPtr< System::IO::Stream > xslStream)
 Bind xml/xsl to document More...
 
ASPOSE_PDF_SHARED_API void BindXml (System::SharedPtr< System::IO::Stream > xmlStream, System::SharedPtr< System::IO::Stream > xslStream, System::SharedPtr< System::Xml::XmlReaderSettings > settings)
 Bind xml/xsl to document More...
 
ASPOSE_PDF_SHARED_API void BindXml (System::SharedPtr< System::IO::Stream > stream)
 Bind xml to document More...
 
ASPOSE_PDF_SHARED_API void GetXmpMetadata (System::SharedPtr< System::IO::Stream > stream)
 Get XMP metadata from document. More...
 
ASPOSE_PDF_SHARED_API void SetXmpMetadata (System::SharedPtr< System::IO::Stream > stream)
 Set XMP metadata of document. More...
 
ASPOSE_PDF_SHARED_API bool Check (bool doRepair)
 Validates document. More...
 
ASPOSE_PDF_SHARED_API void PageNodesToBalancedTree (uint8_t nodesNumInSubtrees=DefaultNodesNumInSubtrees)
 Organizes page tree nodes in a document into a balanced tree. Only if the document has more than nodesNumInSubtrees page objects, otherwise it does nothing. Do not call this method while iterating over Pages elements, it may give unpredictable results More...
 
ASPOSE_PDF_SHARED_API void Merge (System::SharedPtr< Document::MergeOptions > mergeOptions, const System::ArrayPtr< System::SharedPtr< Document >> &documents)
 Merges documents. More...
 
ASPOSE_PDF_SHARED_API void Merge (System::SharedPtr< Document::MergeOptions > mergeOptions, const System::ArrayPtr< System::String > &files)
 Merges documents. More...
 
ASPOSE_PDF_SHARED_API void Merge (const System::ArrayPtr< System::SharedPtr< Document >> &documents)
 Merges documents. More...
 
ASPOSE_PDF_SHARED_API void Merge (const System::ArrayPtr< System::String > &files)
 Merges pdf files. More...
 
ASPOSE_PDF_SHARED_API bool HasIncrementalUpdate ()
 Checks if the current PDF document has been saved with incremental updates. More...
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Static Public Member Functions

static ASPOSE_PDF_SHARED_API bool get_IsLicensed ()
 Gets licensed state of the system. Returns true is system works in licensed mode and false otherwise. More...
 
static ASPOSE_PDF_SHARED_API void Convert (System::String srcFileName, System::SharedPtr< LoadOptions > loadOptions, System::String dstFileName, System::SharedPtr< SaveOptions > saveOptions)
 Converts source file in source format into destination file in destination format. More...
 
static ASPOSE_PDF_SHARED_API void Convert (System::SharedPtr< System::IO::Stream > srcStream, System::SharedPtr< LoadOptions > loadOptions, System::String dstFileName, System::SharedPtr< SaveOptions > saveOptions)
 Converts stream in source format into destination file in destination format. More...
 
static ASPOSE_PDF_SHARED_API void Convert (System::String srcFileName, System::SharedPtr< LoadOptions > loadOptions, System::SharedPtr< System::IO::Stream > dstStream, System::SharedPtr< SaveOptions > saveOptions)
 Converts source file in source format into stream in destination format. More...
 
static ASPOSE_PDF_SHARED_API void Convert (System::SharedPtr< System::IO::Stream > srcStream, System::SharedPtr< LoadOptions > loadOptions, System::SharedPtr< System::IO::Stream > dstStream, System::SharedPtr< SaveOptions > saveOptions)
 Converts stream in source format into stream in destination format. More...
 
static ASPOSE_PDF_SHARED_API System::SharedPtr< DocumentMergeDocuments (System::SharedPtr< Document::MergeOptions > mergeOptions, const System::ArrayPtr< System::String > &files)
 Merges documents. More...
 
static ASPOSE_PDF_SHARED_API System::SharedPtr< DocumentMergeDocuments (System::SharedPtr< Document::MergeOptions > mergeOptions, const System::ArrayPtr< System::SharedPtr< Document >> &files)
 Merges documents. More...
 
static ASPOSE_PDF_SHARED_API System::SharedPtr< DocumentMergeDocuments (const System::ArrayPtr< System::String > &files)
 Merges pdf files. More...
 
static ASPOSE_PDF_SHARED_API System::SharedPtr< DocumentMergeDocuments (const System::ArrayPtr< System::SharedPtr< Document >> &documents)
 Merges documents. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 

Public Attributes

System::Event< void(System::SharedPtr< Text::Font >, System::SharedPtr< Text::Font >)> FontSubstitution
 Occurs when font replaces another font in document. More...
 

Static Public Attributes

static const ASPOSE_PDF_SHARED_API uint8_t DefaultNodesNumInSubtrees
 

Protected Member Functions

System::Guid get_DocumentId () const
 The unique document ID to internal purpose. it allows differentiate document instances. More...
 
const System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Aspose::Rendering::ApsPage > > > & get_ApsPages () const
 List of APS pages for the case of F1-to-F2 conversion when neither F1 nor F2 is PDF. More...
 
void set_ApsPages (System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Aspose::Rendering::ApsPage >>> value)
 List of APS pages for the case of F1-to-F2 conversion when neither F1 nor F2 is PDF. More...
 
bool get__IsObjectLicensed ()
 Gets licensed state of the system. Returns true is system works in licensed mode and false otherwise. More...
 
bool get_IsParagraphsAdded () const
 
void set_IsParagraphsAdded (bool value)
 
bool get_IsLayersAdded ()
 
Text::TextEditOptions::FontReplace get_FontReplaceBehavior () const
 
void set_FontReplaceBehavior (Text::TextEditOptions::FontReplace value)
 
bool get_NotifyAboutFontSubstitutions ()
 
System::SharedPtr< Text::IFontSubstitutionRegistratorget_FontSubstitutionRegistrator () const
 
System::SharedPtr< Engine::CommonData::IDocumentSecondaryStrategiesget_DocumentStrategies () const
 
System::SharedPtr< System::Collections::Generic::IDictionary< int32_t, System::SharedPtr< System::Collections::Generic::List< System::Drawing::RectangleF > > > > get_InternalHyperlinkTargets () const
 
void set_InternalHyperlinkTargets (System::SharedPtr< System::Collections::Generic::IDictionary< int32_t, System::SharedPtr< System::Collections::Generic::List< System::Drawing::RectangleF >>>> value)
 
bool get_IsNotCheckMetadata () const
 Gets a metadata check for pdf/a(validation should pass this because it updates after on save). More...
 
bool get_IsConvertMetadataAndCatalogOnly () const
 Gets convert parameter for pdf/ua converter (Convert only Metadata and Document Catalog if set true) More...
 
void set_IsConvertMetadataAndCatalogOnly (bool value)
 Gets convert parameter for pdf/ua converter (Convert only Metadata and Document Catalog if set true) More...
 
int32_t get_ParentTreeNextKey ()
 
void set_ParentTreeNextKey (int32_t value)
 
Aspose::Pdf::UsageMode get_UsageMode () const
 
System::SharedPtr< Copier > get_DefaultCopier ()
 Returns copier used for coping pages to this document. More...
 
bool get_IsConverted () const
 
void ResetRestrictions ()
 
uint64_t CheckRestriction (uint64_t key)
 
void FillMap (uint64_t key)
 
void SetPlugin (Plugins::Plugin plugin)
 
void NotifyAboutSubstitution (System::SharedPtr< Aspose::Pdf::Text::Font > oldFont, System::SharedPtr< Aspose::Pdf::Text::Font > newFont)
 
void SetSimpleFontEncodingRule (HtmlSaveOptions::FontEncodingRules rule)
 
void InitInternalHyperlinksTargetsData (System::SharedPtr< UnifiedSaveOptions > options)
 Initializes the internal hyperlinks targets data on document loading. More...
 
void RegisterMetadata (System::SharedPtr< Aspose::Pdf::Metadata > metadata)
 
 Document (PdfVersion version)
 Initializes empty document by version. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (Document, CODEPORTING_ARGS(PdfVersion version))
 
void ProcessLayers ()
 Process layers for generator. More...
 
void ValidateAnnotations ()
 
void UncompressObject (System::SharedPtr< Engine::Data::IPdfObject > obj)
 
void UpdatePagesResources ()
 Copies shared resources into pages. More...
 
void UpdateXFormResources ()
 Copies resources from Page into its XForm. More...
 
bool Convert (System::SharedPtr< System::Xml::XmlTextWriter > xml, Aspose::Pdf::PdfFormat format, bool onlyValidation, ConvertErrorAction action, ConvertTransparencyAction transparencyAction)
 Convert the PDF Document and log results. More...
 
bool Convert (System::SharedPtr< System::Xml::XmlTextWriter > xml, Aspose::Pdf::PdfFormat format, bool onlyValidation, ConvertErrorAction action)
 Convert the PDF Document and log results. More...
 
bool Convert (System::SharedPtr< PdfFormatConversionOptions > options, bool onlyValidation)
 
bool Convert (Fixup fixup, System::SharedPtr< System::Xml::XmlTextWriter > outputLog, bool onlyValidation=false, System::ArrayPtr< System::SharedPtr< System::Object >> parameters=nullptr)
 
bool ContainSignature ()
 If the document has at least 1 signature - true More...
 
void LoadDocument (System::SharedPtr< System::IO::Stream > input, System::SharedPtr< LoadOptions > options)
 
void FlattenA ()
 
void FlattenB ()
 
bool IsCertified ()
 
System::SharedPtr< Engine::Data::Types::IPdfStreamAccessor > GetMetadataStream ()
 Returns raw metadata stream More...
 
void UpdatePages ()
 
void SuppressUpdate ()
 Suppresses update contents data for all pages The contents is not updated until ResumeUpdate is called More...
 
void ResumeUpdate ()
 resumes document update More...
 
System::SharedPtr< ResourcesGetResourcesFor (System::SharedPtr< Engine::Data::IPdfObject > obj)
 
void ReleaseResourcesFor (System::SharedPtr< Engine::Data::IPdfObject > obj)
 
void SetResourcesFor (System::SharedPtr< Engine::Data::IPdfObject > obj, System::SharedPtr< Resources > res)
 
System::SharedPtr< System::Collections::Generic::Dictionary< int32_t, int32_t > > OptimizeResourceInternal (System::SharedPtr< Aspose::Pdf::Optimization::OptimizationOptions > strategy)
 
System::SharedPtr< System::Collections::Generic::Dictionary< int32_t, int32_t > > OptimizeResourceInternal ()
 
void RegisterAfterImportAnnotation (System::SharedPtr< Annotations::Annotation > annotation)
 Register annotation for which AfterImport method must be called after import finished. More...
 
void AfterImport ()
 Enumerate all registered annotations and call AfterImport for each of them. More...
 
bool Check (bool doRepair, System::SharedPtr< System::IO::Stream > log)
 
void CppKeepTrailerable (System::SharedPtr< Engine::Data::ITrailerable > keep)
 
virtual ASPOSE_PDF_SHARED_API ~Document ()
 

Static Protected Member Functions

static bool get__IsLicensed ()
 Gets licensed state of the system. Returns true is system works in licensed mode and false otherwise. More...
 
static bool get_Indivisible ()
 
static int32_t & IndivisibleLevel ()
 
static bool get___Indivisible ()
 
static uint64_t TransformRestrictionKey (uint64_t key)
 
static bool Restricted (System::SharedPtr< Engine::Data::ITrailerable > tr, int32_t index)
 
static bool Restricted (System::SharedPtr< Document > doc, int32_t index)
 
static bool _NeedCheckRestrictions (System::SharedPtr< Document > doc)
 
static bool _Restricted (System::SharedPtr< Document > doc, int32_t index)
 
static void _Restrict (System::SharedPtr< Document > doc, int32_t index)
 
static void _Restrict (System::SharedPtr< Engine::Data::ITrailerable > tr, int32_t index)
 
static bool _Restricted (System::SharedPtr< Engine::Data::ITrailerable > tr, int32_t index)
 
static void Restrict (System::SharedPtr< Engine::Data::ITrailerable > tr, int32_t index)
 
static void Restrict (System::SharedPtr< Document > doc, int32_t index)
 
static void Restrict (System::SharedPtr< Engine::Data::ITrailerable > tr, System::SharedPtr< Collections::AsposeHashDictionary< System::String, System::SharedPtr< System::Object >>> cache)
 
static void Restrict (System::SharedPtr< Document > doc, System::SharedPtr< Collections::AsposeHashDictionary< System::String, System::SharedPtr< System::Object >>> cache)
 
template<typename TKey , typename TValue >
static void Restrict (System::SharedPtr< Document > doc, System::SharedPtr< System::Collections::Generic::Dictionary< TKey, TValue >> cache)
 
static bool IsVentureLicenseValid (System::SharedPtr< LicenseManagement::VentureLicense > _ventureLicense)
 
static bool Restricted (System::SharedPtr< LicenseManagement::VentureLicense > ventureLicense, int32_t index)
 
static void StartOperation ()
 
static void EndOperation ()
 
static void UpdateMetadata (System::SharedPtr< Engine::PdfDocument > document, System::SharedPtr< Aspose::Pdf::Metadata > metadata)
 
static void PreSave (System::SharedPtr< PageCollection > pages, System::SharedPtr< SaveOptions > saveOptions)
 
static System::SharedPtr< System::ObjectGetObjectById (System::String id, System::SharedPtr< Paragraphs > paragraphs)
 

Protected Attributes

System::SharedPtr< ConversionPipeline > Pipeline
 
bool ReloadAfterLinearization
 
bool IsPdfAConversionMode
 
System::SharedPtr< Engine::CommonData::Text::Fonts::Utilities::IDocumentFontSaveOptions > FontSaveOptions
 
System::SharedPtr< Engine::IPdfDocument > _engineDoc
 Instance of IPdfDocument used to access to internal document structure. More...
 
System::SharedPtr< System::Collections::Generic::Dictionary< System::String, System::SharedPtr< Engine::CommonData::Text::Segmenting::TextSegmentBuilder > > > _commonXObjects
 

Static Protected Attributes

static System::SharedPtr< System::ObjectsyncRoot
 

Detailed Description

Class representing PDF document

Member Typedef Documentation

◆ CallBackGetHocr

The call back procedure for hocr recognize.

◆ CallBackGetHocrWithPage

The call back procedure for hocr recognize.

◆ FontSubstitutionHandler

Represents the method that will handle FontSubstitution event.

Parameters
oldFontoriginal font
newFontnew font

Constructor & Destructor Documentation

◆ Document() [1/11]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Document::Document ( System::SharedPtr< System::IO::Stream input)

Initialize new Document instance from the input stream.

Parameters
inputStream with pdf document.

◆ Document() [2/11]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Document::Document ( System::SharedPtr< System::IO::Stream input,
System::String  password,
bool  isManagedStream 
)

Initialize new Document instance from the input stream.

Parameters
inputStream with pdf document.
passwordUser or owner password.
isManagedStreamif set to true inner stream is closed before exit; otherwise, is not.

◆ Document() [3/11]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Document::Document ( System::SharedPtr< System::IO::Stream input,
bool  isManagedStream 
)

Initialize new Document instance from the input stream.

Parameters
inputStream with pdf document.
isManagedStreamif set to true inner stream is closed before exit; otherwise, is not.

◆ Document() [4/11]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Document::Document ( System::String  filename)

Just init Document using filename . The same as Document(Stream).

Parameters
filenameThe name of the pdf document file.

◆ Document() [5/11]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Document::Document ( System::SharedPtr< System::IO::Stream input,
System::String  password 
)

Initialize new Document instance from the input stream.

Parameters
inputInput stream object, corresponding pdf is password protected.
passwordUser or owner password.

◆ Document() [6/11]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Document::Document ( )

Initializes empty document.

◆ Document() [7/11]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Document::Document ( System::String  filename,
System::String  password 
)

Initializes new instance of the Document class for working with encrypted document.

Parameters
filenameDocument file name.
passwordUser or owner password.

◆ Document() [8/11]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Document::Document ( System::String  filename,
System::String  password,
bool  isManagedStream 
)

Initializes new instance of the Document class for working with encrypted document.

Parameters
filenameDocument file name.
passwordUser or owner password.
isManagedStreamif set to true inner stream is closed before exit; otherwise, is not.

◆ Document() [9/11]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Document::Document ( System::String  filename,
System::SharedPtr< LoadOptions options 
)

Opens an existing document from a file providing necessary converting options to get pdf document.

Parameters
filenameInput file to convert into pdf document.
optionsRepresents properties for converting filename into pdf document.

◆ Document() [10/11]

ASPOSE_PDF_SHARED_API Aspose::Pdf::Document::Document ( System::SharedPtr< System::IO::Stream input,
System::SharedPtr< LoadOptions options 
)

Opens an existing document from a stream providing necessary converting to get pdf document.

Parameters
inputInput stream to convert into pdf document.
optionsRepresents properties for converting input into pdf document.

◆ Document() [11/11]

Aspose::Pdf::Document::Document ( PdfVersion  version)
protected

Initializes empty document by version.

◆ ~Document()

virtual ASPOSE_PDF_SHARED_API Aspose::Pdf::Document::~Document ( )
protectedvirtual

Member Function Documentation

◆ _NeedCheckRestrictions()

static bool Aspose::Pdf::Document::_NeedCheckRestrictions ( System::SharedPtr< Document doc)
staticprotected

◆ _Restrict() [1/2]

static void Aspose::Pdf::Document::_Restrict ( System::SharedPtr< Document doc,
int32_t  index 
)
staticprotected

◆ _Restrict() [2/2]

static void Aspose::Pdf::Document::_Restrict ( System::SharedPtr< Engine::Data::ITrailerable >  tr,
int32_t  index 
)
staticprotected

◆ _Restricted() [1/2]

static bool Aspose::Pdf::Document::_Restricted ( System::SharedPtr< Document doc,
int32_t  index 
)
staticprotected

◆ _Restricted() [2/2]

static bool Aspose::Pdf::Document::_Restricted ( System::SharedPtr< Engine::Data::ITrailerable >  tr,
int32_t  index 
)
staticprotected

◆ AfterImport()

void Aspose::Pdf::Document::AfterImport ( )
protected

Enumerate all registered annotations and call AfterImport for each of them.

◆ BindXml() [1/5]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::BindXml ( System::String  file)

Bind xml to document

Parameters
fileThe xml file

◆ BindXml() [2/5]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::BindXml ( System::String  xmlFile,
System::String  xslFile 
)

Bind xml/xsl to document

Parameters
xmlFileThe xml file.
xslFileThe xsl file if XSLT is used.

◆ BindXml() [3/5]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::BindXml ( System::SharedPtr< System::IO::Stream xmlStream,
System::SharedPtr< System::IO::Stream xslStream 
)

Bind xml/xsl to document

Parameters
xmlStreamThe xml stream.
xslStreamThe xsl stream if XSLT is used.

◆ BindXml() [4/5]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::BindXml ( System::SharedPtr< System::IO::Stream xmlStream,
System::SharedPtr< System::IO::Stream xslStream,
System::SharedPtr< System::Xml::XmlReaderSettings settings 
)

Bind xml/xsl to document

Parameters
xmlStreamThe xml stream.
xslStreamThe xsl stream if XSLT is used.
settingsThe xml reader settings.

◆ BindXml() [5/5]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::BindXml ( System::SharedPtr< System::IO::Stream stream)

Bind xml to document

Parameters
streamThe xml stream.

◆ ChangePasswords()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::ChangePasswords ( System::String  ownerPassword,
System::String  newUserPassword,
System::String  newOwnerPassword 
)

Changes document passwords. This action can be done only using owner password.

Parameters
ownerPasswordOwner password.
newUserPasswordNew user password.
newOwnerPasswordNew owner password.

◆ Check() [1/2]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::Check ( bool  doRepair)

Validates document.

Parameters
doRepairIf true found issues will be repaired.
Returns
True - if document repaired; otherwise, false.

◆ Check() [2/2]

bool Aspose::Pdf::Document::Check ( bool  doRepair,
System::SharedPtr< System::IO::Stream log 
)
protected

◆ CheckRestriction()

uint64_t Aspose::Pdf::Document::CheckRestriction ( uint64_t  key)
protected

◆ ContainSignature()

bool Aspose::Pdf::Document::ContainSignature ( )
protected

If the document has at least 1 signature - true

Returns

◆ Convert() [1/17]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::Convert ( System::String  outputLogFileName,
Aspose::Pdf::PdfFormat  format,
ConvertErrorAction  action,
ConvertTransparencyAction  transparencyAction 
)

Convert document and save errors into the specified file.

Parameters
outputLogFileNamePath to file where the comments will be stored.
formatThe pdf format.
actionAction for objects that can not be converted
transparencyActionAction for image masked objects
Returns
The operation result

◆ Convert() [2/17]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::Convert ( System::SharedPtr< System::IO::Stream outputLogStream,
Aspose::Pdf::PdfFormat  format,
ConvertErrorAction  action,
ConvertTransparencyAction  transparencyAction 
)

Convert document and save errors into the specified file.

Parameters
outputLogStreamStream where the comments will be stored.
formatThe pdf format.
actionAction for objects that can not be converted
transparencyActionAction for image masked objects
Returns
The operation result

◆ Convert() [3/17]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::Convert ( System::String  outputLogFileName,
Aspose::Pdf::PdfFormat  format,
ConvertErrorAction  action 
)

Convert document and save errors into the specified file.

Parameters
outputLogFileNamePath to file where the comments will be stored.
formatThe pdf format.
actionAction for objects that can not be converted
Returns
The operation result

◆ Convert() [4/17]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::Convert ( System::SharedPtr< PdfFormatConversionOptions options)

Convert document using specified conversion options

Parameters
optionsset of options for convert PDF document
Returns
The operation result

◆ Convert() [5/17]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::Convert ( Document::CallBackGetHocrWithPage  callback,
bool  flattenImages = false 
)

Recognize images inside the document and add hocr strings over it.

Parameters
callbackAction for images that will be processed by hocr recognize.
flattenImagesText in pdf images can be painted using the mechanics of masks, in which case the images must be flattened.
Returns
The operation result. If there are no images in the document returns false.

◆ Convert() [6/17]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::Convert ( Document::CallBackGetHocr  callback,
bool  flattenImages = false 
)

Recognize images inside the document and add hocr strings over it.

Parameters
callbackAction for images that will be processed by hocr recognize.
flattenImagesText in pdf images can be painted using the mechanics of masks, in which case the images must be flattened.
Returns
The operation result. If there are no images in the document returns false.

◆ Convert() [7/17]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::Convert ( System::SharedPtr< System::IO::Stream outputLogStream,
Aspose::Pdf::PdfFormat  format,
ConvertErrorAction  action 
)

Convert document and save errors into the specified stream.

Parameters
outputLogStreamStream where the comments will be stored.
formatPdf format.
actionAction for objects that can not be converted
Returns
The operation result

◆ Convert() [8/17]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::Convert ( Fixup  fixup,
System::SharedPtr< System::IO::Stream outputLog,
bool  onlyValidation = false,
System::ArrayPtr< System::SharedPtr< System::Object >>  parameters = nullptr 
)

Convert document by applying the Fixup.

Parameters
fixupThe Fixup type.
outputLogThe log of process.
onlyValidationOnly document validation.
parametersProperties for Fixup that can not be set.
Returns
The operation result.

◆ Convert() [9/17]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::Convert ( Fixup  fixup,
System::String  outputLog,
bool  onlyValidation = false,
System::ArrayPtr< System::SharedPtr< System::Object >>  parameters = nullptr 
)

Convert document by applying the Fixup.

Parameters
fixupThe Fixup type.
outputLogThe log of process.
onlyValidationOnly document validation.
parametersProperties for Fixup that can not be set.
Returns
The operation result.

◆ Convert() [10/17]

static ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Convert ( System::String  srcFileName,
System::SharedPtr< LoadOptions loadOptions,
System::String  dstFileName,
System::SharedPtr< SaveOptions saveOptions 
)
static

Converts source file in source format into destination file in destination format.

Parameters
srcFileNameThe source file name.
loadOptionsThe source file format.
dstFileNameThe destination file name.
saveOptionsThe destination file format.

◆ Convert() [11/17]

static ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Convert ( System::SharedPtr< System::IO::Stream srcStream,
System::SharedPtr< LoadOptions loadOptions,
System::String  dstFileName,
System::SharedPtr< SaveOptions saveOptions 
)
static

Converts stream in source format into destination file in destination format.

Parameters
srcStreamThe source stream.
loadOptionsThe source stream format.
dstFileNameThe destination file name.
saveOptionsThe destination file format.

◆ Convert() [12/17]

static ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Convert ( System::String  srcFileName,
System::SharedPtr< LoadOptions loadOptions,
System::SharedPtr< System::IO::Stream dstStream,
System::SharedPtr< SaveOptions saveOptions 
)
static

Converts source file in source format into stream in destination format.

Parameters
srcFileNameThe source file name.
loadOptionsThe source file format.
dstStreamThe destination stream.
saveOptionsThe destination stream format.

◆ Convert() [13/17]

static ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Convert ( System::SharedPtr< System::IO::Stream srcStream,
System::SharedPtr< LoadOptions loadOptions,
System::SharedPtr< System::IO::Stream dstStream,
System::SharedPtr< SaveOptions saveOptions 
)
static

Converts stream in source format into stream in destination format.

Parameters
srcStreamThe source stream.
loadOptionsThe source stream format.
dstStreamThe destination stream.
saveOptionsThe destination file format.

◆ Convert() [14/17]

bool Aspose::Pdf::Document::Convert ( System::SharedPtr< System::Xml::XmlTextWriter xml,
Aspose::Pdf::PdfFormat  format,
bool  onlyValidation,
ConvertErrorAction  action,
ConvertTransparencyAction  transparencyAction 
)
protected

Convert the PDF Document and log results.

Parameters
xmlThe log.
formatPdf format.
onlyValidationOnly document validation.
actionAction for objects that can not be converted
transparencyActionAction for image masked objects
Returns
The operation result

◆ Convert() [15/17]

bool Aspose::Pdf::Document::Convert ( System::SharedPtr< System::Xml::XmlTextWriter xml,
Aspose::Pdf::PdfFormat  format,
bool  onlyValidation,
ConvertErrorAction  action 
)
protected

Convert the PDF Document and log results.

Parameters
xmlThe log.
formatPdf format.
onlyValidationOnly document validation.
actionAction for objects that can not be converted
Returns
The operation result

◆ Convert() [16/17]

bool Aspose::Pdf::Document::Convert ( System::SharedPtr< PdfFormatConversionOptions options,
bool  onlyValidation 
)
protected

◆ Convert() [17/17]

bool Aspose::Pdf::Document::Convert ( Fixup  fixup,
System::SharedPtr< System::Xml::XmlTextWriter outputLog,
bool  onlyValidation = false,
System::ArrayPtr< System::SharedPtr< System::Object >>  parameters = nullptr 
)
protected

◆ ConvertPageToPNGMemoryStream()

ASPOSE_PDF_SHARED_API System::SharedPtr<System::IO::MemoryStream> Aspose::Pdf::Document::ConvertPageToPNGMemoryStream ( System::SharedPtr< Page page)

Convert page to PNG for DSR, OMR, OCR image stream.

Parameters
pagePage to convert.
Returns
Image stream.

◆ CppKeepTrailerable()

void Aspose::Pdf::Document::CppKeepTrailerable ( System::SharedPtr< Engine::Data::ITrailerable >  keep)
protected

◆ Decrypt()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Decrypt ( )

Decrypts the document. Call then Save to obtain decrypted version of the document.

◆ Dispose()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Dispose ( )
overridevirtual

Closes all resources used by this document.

Reimplemented from System::IDisposable.

◆ Encrypt() [1/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Encrypt ( System::String  userPassword,
System::String  ownerPassword,
System::SharedPtr< Facades::DocumentPrivilege privileges,
Aspose::Pdf::CryptoAlgorithm  cryptoAlgorithm,
bool  usePdf20 
)

Encrypts the document. Call then Save to get encrypted version of the document.

Parameters
userPasswordUser password.
ownerPasswordOwner password.
privilegesDocument permissions, see Permissions for details.
cryptoAlgorithmCryptographic algorithm, see CryptoAlgorithm for details.
usePdf20Support for revision 6 (Extension 8).

◆ Encrypt() [2/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Encrypt ( System::String  userPassword,
System::String  ownerPassword,
Aspose::Pdf::Permissions  permissions,
Aspose::Pdf::CryptoAlgorithm  cryptoAlgorithm 
)

Encrypts the document. Call then Save to get encrypted version of the document.

Parameters
userPasswordUser password.
ownerPasswordOwner password.
permissionsDocument permissions, see Permissions for details.
cryptoAlgorithmCryptographic algorithm, see CryptoAlgorithm for details.

◆ Encrypt() [3/3]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Encrypt ( System::String  userPassword,
System::String  ownerPassword,
Aspose::Pdf::Permissions  permissions,
Aspose::Pdf::CryptoAlgorithm  cryptoAlgorithm,
bool  usePdf20 
)

Encrypts the document. Call then Save to get encrypted version of the document.

Parameters
userPasswordUser password.
ownerPasswordOwner password.
permissionsDocument permissions, see Permissions for details.
cryptoAlgorithmCryptographic algorithm, see CryptoAlgorithm for details.
usePdf20Support for revision 6 (Extension 8).

◆ EndOperation()

static void Aspose::Pdf::Document::EndOperation ( )
staticprotected

◆ ExportAnnotationsToXfdf() [1/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::ExportAnnotationsToXfdf ( System::String  fileName)

Exports all document annotations to XFDF file

Parameters
fileNameXFDF file name

◆ ExportAnnotationsToXfdf() [2/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::ExportAnnotationsToXfdf ( System::SharedPtr< System::IO::Stream stream)

Export all document annotations into stream.

Parameters
streamStream where store XFDF.

◆ FillMap()

void Aspose::Pdf::Document::FillMap ( uint64_t  key)
protected

◆ Flatten() [1/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Flatten ( )

Removes all fields from the document and place their values instead.

◆ Flatten() [2/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Flatten ( System::SharedPtr< Aspose::Pdf::Forms::Form::FlattenSettings flattenSettings)

Removes all fields (and annotations) from the document and place their values instead.

Parameters
flattenSettingsSettings for flattening process.

◆ FlattenA()

void Aspose::Pdf::Document::FlattenA ( )
protected

◆ FlattenB()

void Aspose::Pdf::Document::FlattenB ( )
protected

◆ FlattenTransparency()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::FlattenTransparency ( )

Replaces transparent content with non-transparent raster and vector graphics.

◆ FreeMemory()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::FreeMemory ( )
overridevirtual

Clears memory

Implements Aspose::Pdf::ISupportsMemoryCleanup.

◆ get___Indivisible()

static bool Aspose::Pdf::Document::get___Indivisible ( )
staticprotected

◆ get__IsLicensed()

static bool Aspose::Pdf::Document::get__IsLicensed ( )
staticprotected

Gets licensed state of the system. Returns true is system works in licensed mode and false otherwise.

◆ get__IsObjectLicensed()

bool Aspose::Pdf::Document::get__IsObjectLicensed ( )
protected

Gets licensed state of the system. Returns true is system works in licensed mode and false otherwise.

◆ get_Actions()

ASPOSE_PDF_SHARED_API System::SharedPtr<Annotations::DocumentActionCollection> Aspose::Pdf::Document::get_Actions ( )

Gets document actions. This property is instance of DocumentActions class which allows to get/set BeforClosing, BeforSaving, etc. actions.

◆ get_AllowReusePageContent()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_AllowReusePageContent ( )

Allows to merge page contents to optimize docuement size. If used then differnet but duplicated pages may reference to the same content object. Please note that this mode may cause side effects like changing page content when other page is changed.

◆ get_ApsPages()

const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<Aspose::Rendering::ApsPage> > >& Aspose::Pdf::Document::get_ApsPages ( ) const
protected

List of APS pages for the case of F1-to-F2 conversion when neither F1 nor F2 is PDF.

◆ get_Background()

ASPOSE_PDF_SHARED_API System::SharedPtr<Color> Aspose::Pdf::Document::get_Background ( )

Gets the background color of the document.

◆ get_CenterWindow()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_CenterWindow ( )

Gets flag specifying whether position of the document's window will be centerd on the screen.

◆ get_Collection()

ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Collection> Aspose::Pdf::Document::get_Collection ( )

Gets collection of document.

◆ get_CryptoAlgorithm()

ASPOSE_PDF_SHARED_API System::Nullable<Aspose::Pdf::CryptoAlgorithm> Aspose::Pdf::Document::get_CryptoAlgorithm ( )

Gets security settings if document is encrypted. If document is not encrypted then corresponding exception will be raised in .net 1.1 or CryptoAlgorithm will be null for other .net versions.

◆ get_DefaultCopier()

System::SharedPtr<Copier> Aspose::Pdf::Document::get_DefaultCopier ( )
protected

Returns copier used for coping pages to this document.

◆ get_Destinations()

ASPOSE_PDF_SHARED_API System::SharedPtr<DestinationCollection> Aspose::Pdf::Document::get_Destinations ( )

Gets the collection of destinations. Obsolete. Please use NamedDestinations.

◆ get_Direction()

ASPOSE_PDF_SHARED_API Aspose::Pdf::Direction Aspose::Pdf::Document::get_Direction ( )

Gets reading order of text: L2R (left to right) or R2L (right to left).

◆ get_DisableFontLicenseVerifications()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_DisableFontLicenseVerifications ( ) const

Many operations with font can't be executed if these operations are prohibited by license of this font. For example some font can't be embedded into PDF document if license rules disable embedding for this font. This flag is used to disable any license restrictions for all fonts in current PDF document. Be careful when using this flag. When it is set it means that person who sets this flag, takes all responsibility of possible license/law violations on himself. So He takes it on it's own risk. It's strongly recommended to use this flag only when you are fully confident that you are not breaking the copyright law. By default false.

◆ get_DisplayDocTitle()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_DisplayDocTitle ( )

Gets flag specifying whether document's window title bar should display document title.

◆ get_DocumentId()

System::Guid Aspose::Pdf::Document::get_DocumentId ( ) const
protected

The unique document ID to internal purpose. it allows differentiate document instances.

◆ get_DocumentStrategies()

System::SharedPtr<Engine::CommonData::IDocumentSecondaryStrategies> Aspose::Pdf::Document::get_DocumentStrategies ( ) const
protected

◆ get_Duplex()

ASPOSE_PDF_SHARED_API PrintDuplex Aspose::Pdf::Document::get_Duplex ( )

Gets print duplex mode handling option to use when printing the file from the print dialog.

◆ get_EmbeddedFiles()

ASPOSE_PDF_SHARED_API System::SharedPtr<EmbeddedFileCollection> Aspose::Pdf::Document::get_EmbeddedFiles ( )

Gets collection of files embedded to document.

◆ get_EmbedStandardFonts()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_EmbedStandardFonts ( ) const

Property which declares that document must embed all standard Type1 fonts which has flag IsEmbedded set into true. All PDF fonts can be embedded into document simply via setting of flag IsEmbedded into true, but PDF standard Type1 fonts is an exception from this rule. Standard Type1 font embedding requires much time, so to embed these fonts it's necessary not only set flag IsEmbedded into true for specified font but also set an additiona flag on document's level - EmbedStandardFonts = true; This property can be set only one time for all fonts. By default false.

◆ get_EnableObjectUnload()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_EnableObjectUnload ( )

Get or sets flag which enables document partially be unloaded from memory. This allow to decrease memory usage but may have negative effect on perfomance.

◆ get_EnableSignatureSanitization()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_EnableSignatureSanitization ( ) const

Gets flag to manage signature fields sanitization. Enabled by default.

◆ get_FileName()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Document::get_FileName ( )

Name of the PDF file that caused this document

◆ get_FitWindow()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_FitWindow ( )

Gets flag specifying whether document window must be resized to fit the first displayed page.

◆ get_FontReplaceBehavior()

Text::TextEditOptions::FontReplace Aspose::Pdf::Document::get_FontReplaceBehavior ( ) const
protected

◆ get_FontSubstitutionRegistrator()

System::SharedPtr<Text::IFontSubstitutionRegistrator> Aspose::Pdf::Document::get_FontSubstitutionRegistrator ( ) const
protected

◆ get_FontUtilities()

ASPOSE_PDF_SHARED_API System::SharedPtr<Document::IDocumentFontUtilities> Aspose::Pdf::Document::get_FontUtilities ( )

◆ get_Form()

ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Forms::Form> Aspose::Pdf::Document::get_Form ( )

Gets Acro Form of the document.

◆ get_HandleSignatureChange()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_HandleSignatureChange ( ) const

Throw Exception if the document will save with changes and have signature

◆ get_HideMenubar()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_HideMenubar ( )

Gets flag specifying whether menu bar should be hidden when document is active.

◆ get_HideToolBar()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_HideToolBar ( )

Gets flag specifying whether toolbar should be hidden when document is active.

◆ get_HideWindowUI()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_HideWindowUI ( )

Gets flag specifying whether user interface elements should be hidden when document is active.

◆ get_Id()

ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Id> Aspose::Pdf::Document::get_Id ( )

Gets the ID.

◆ get_IgnoreCorruptedObjects()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_IgnoreCorruptedObjects ( )

Gets flag of ignoring errors in source files. When pages from source document copied into destination document, copying process is stopped with exception if some objects in source files are corrupted when this flag is false. example: dest.Pages.Add(src.Pages); If this flag is set to true then corrupted objects will be replaced with empty values. By default: true.

◆ get_Indivisible()

static bool Aspose::Pdf::Document::get_Indivisible ( )
staticprotected

◆ get_Info()

ASPOSE_PDF_SHARED_API System::SharedPtr<DocumentInfo> Aspose::Pdf::Document::get_Info ( )

Gets document info.

◆ get_InternalHyperlinkTargets()

System::SharedPtr<System::Collections::Generic::IDictionary<int32_t, System::SharedPtr<System::Collections::Generic::List<System::Drawing::RectangleF> > > > Aspose::Pdf::Document::get_InternalHyperlinkTargets ( ) const
protected

◆ get_IsConverted()

bool Aspose::Pdf::Document::get_IsConverted ( ) const
protected

◆ get_IsConvertMetadataAndCatalogOnly()

bool Aspose::Pdf::Document::get_IsConvertMetadataAndCatalogOnly ( ) const
protected

Gets convert parameter for pdf/ua converter (Convert only Metadata and Document Catalog if set true)

◆ get_IsEncrypted()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_IsEncrypted ( )

Gets encrypted status of the document. True if document is encrypted.

◆ get_IsLayersAdded()

bool Aspose::Pdf::Document::get_IsLayersAdded ( )
protected

◆ get_IsLicensed()

static ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_IsLicensed ( )
static

Gets licensed state of the system. Returns true is system works in licensed mode and false otherwise.

◆ get_IsLinearized()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_IsLinearized ( )

Gets a value indicating whether document is linearized.

◆ get_IsNotCheckMetadata()

bool Aspose::Pdf::Document::get_IsNotCheckMetadata ( ) const
protected

Gets a metadata check for pdf/a(validation should pass this because it updates after on save).

◆ get_IsParagraphsAdded()

bool Aspose::Pdf::Document::get_IsParagraphsAdded ( ) const
protected

◆ get_IsPdfaCompliant()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_IsPdfaCompliant ( )

Gets the is document pdfa compliant.

◆ get_IsPdfUaCompliant()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_IsPdfUaCompliant ( )

Gets the is document pdfua compliant.

◆ get_IsXrefGapsAllowed()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_IsXrefGapsAllowed ( )

Gets the is document pdfa compliant.

◆ get_JavaScript()

ASPOSE_PDF_SHARED_API System::SharedPtr<JavaScriptCollection> Aspose::Pdf::Document::get_JavaScript ( )

Collection of JavaScript of document level.

◆ get_LogicalStructure()

ASPOSE_PDF_SHARED_API System::SharedPtr<Structure::RootElement> Aspose::Pdf::Document::get_LogicalStructure ( )

Gets logical structure of the document.

◆ get_Metadata()

ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::Metadata> Aspose::Pdf::Document::get_Metadata ( )

Document metadata. (A PDF document may include general information, such as the document's title, author, and creation and modification dates. Such global information about the document (as opposed to its content or structure) is called metadata and is intended to assist in cataloguing and searching for documents in external databases.)

◆ get_NamedDestinations()

ASPOSE_PDF_SHARED_API System::SharedPtr<NamedDestinationCollection> Aspose::Pdf::Document::get_NamedDestinations ( )

Collection of Named Destination in the document.

◆ get_NonFullScreenPageMode()

ASPOSE_PDF_SHARED_API Aspose::Pdf::PageMode Aspose::Pdf::Document::get_NonFullScreenPageMode ( )

Gets page mode, specifying how to display the document on exiting full-screen mode.

◆ get_NotifyAboutFontSubstitutions()

bool Aspose::Pdf::Document::get_NotifyAboutFontSubstitutions ( )
protected

◆ get_OpenAction()

ASPOSE_PDF_SHARED_API System::SharedPtr<Annotations::IAppointment> Aspose::Pdf::Document::get_OpenAction ( )

Gets action performed at document opening.

◆ get_OptimizeSize()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::get_OptimizeSize ( )

Gets optimization flag. When pages are added to document, equal resource streams in resultant file are merged into one PDF object if this flag set. This allows to decrease resultant file size but may cause slower execution and larger memory requirements. Default value: false.

◆ get_Outlines()

ASPOSE_PDF_SHARED_API System::SharedPtr<OutlineCollection> Aspose::Pdf::Document::get_Outlines ( )

Gets document outlines.

◆ get_OutputIntents()

ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::OutputIntents> Aspose::Pdf::Document::get_OutputIntents ( )

Gets the collection of Output intents in the document.

◆ get_PageInfo()

ASPOSE_PDF_SHARED_API System::SharedPtr<Aspose::Pdf::PageInfo> Aspose::Pdf::Document::get_PageInfo ( )

Gets the page info.(for generator only, not filled in when reading document)

The page info.

◆ get_PageLabels()

ASPOSE_PDF_SHARED_API System::SharedPtr<PageLabelCollection> Aspose::Pdf::Document::get_PageLabels ( )

Gets page labels in the document.

◆ get_PageLayout()

ASPOSE_PDF_SHARED_API Aspose::Pdf::PageLayout Aspose::Pdf::Document::get_PageLayout ( )

Gets page layout which shall be used when the document is opened.

◆ get_PageMode()

ASPOSE_PDF_SHARED_API Aspose::Pdf::PageMode Aspose::Pdf::Document::get_PageMode ( )

Gets page mode, specifying how document should be displayed when opened.

◆ get_Pages()

ASPOSE_PDF_SHARED_API System::SharedPtr<PageCollection> Aspose::Pdf::Document::get_Pages ( )

Gets collection of document pages. Note that pages are numbered from 1 in collection.

◆ get_ParentTreeNextKey()

int32_t Aspose::Pdf::Document::get_ParentTreeNextKey ( )
protected

◆ get_PdfFormat()

ASPOSE_PDF_SHARED_API Aspose::Pdf::PdfFormat Aspose::Pdf::Document::get_PdfFormat ( )

Gets PDF format

◆ get_Permissions()

ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Document::get_Permissions ( )

Gets permissions of the document.

◆ get_PrintScaling()

ASPOSE_PDF_SHARED_API Aspose::Pdf::PrintScaling Aspose::Pdf::Document::get_PrintScaling ( )

Gets the page scaling option that shall be selected when a print dialog is displayed for this document.

◆ get_TaggedContent()

ASPOSE_PDF_SHARED_API System::SharedPtr<Tagged::ITaggedContent> Aspose::Pdf::Document::get_TaggedContent ( )

Gets access to TaggedPdf content.

◆ get_UsageMode()

Aspose::Pdf::UsageMode Aspose::Pdf::Document::get_UsageMode ( ) const
protected

◆ get_Version()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Document::get_Version ( )

Gets a version of Pdf from Pdf file header.

◆ GetCatalogValue()

ASPOSE_PDF_SHARED_API System::SharedPtr<System::Object> Aspose::Pdf::Document::GetCatalogValue ( System::String  key)

Returns item value from catalog dictionary.

Parameters
keyThe key of item.
Returns
Item value - if key was successfully found; otherwise, null.

◆ GetMetadataStream()

System::SharedPtr<Engine::Data::Types::IPdfStreamAccessor> Aspose::Pdf::Document::GetMetadataStream ( )
protected

Returns raw metadata stream

Returns

◆ GetObjectById() [1/2]

ASPOSE_PDF_SHARED_API System::SharedPtr<System::Object> Aspose::Pdf::Document::GetObjectById ( System::String  id)

Gets a object with specified ID in the document.

Parameters
idThe object id.
Returns
The object with specified id. Null if the id is not found.

◆ GetObjectById() [2/2]

static System::SharedPtr<System::Object> Aspose::Pdf::Document::GetObjectById ( System::String  id,
System::SharedPtr< Paragraphs paragraphs 
)
staticprotected

◆ GetResourcesFor()

System::SharedPtr<Resources> Aspose::Pdf::Document::GetResourcesFor ( System::SharedPtr< Engine::Data::IPdfObject >  obj)
protected

◆ GetXmpMetadata()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::GetXmpMetadata ( System::SharedPtr< System::IO::Stream stream)

Get XMP metadata from document.

Parameters
streamStream where metadata will be stored.

◆ HasIncrementalUpdate()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::HasIncrementalUpdate ( )

Checks if the current PDF document has been saved with incremental updates.

Returns
true if the PDF document has incremental updates; otherwise, false.

◆ ImportAnnotationsFromXfdf() [1/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::ImportAnnotationsFromXfdf ( System::String  fileName)

Imports annotations from XFDF file to document.

Parameters
fileNameXFDF file name

◆ ImportAnnotationsFromXfdf() [2/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::ImportAnnotationsFromXfdf ( System::SharedPtr< System::IO::Stream stream)

Imports annotations from stream to document.

Parameters
streamStream contains XFDF data.

◆ IndivisibleLevel()

static int32_t& Aspose::Pdf::Document::IndivisibleLevel ( )
staticprotected

◆ InitInternalHyperlinksTargetsData()

void Aspose::Pdf::Document::InitInternalHyperlinksTargetsData ( System::SharedPtr< UnifiedSaveOptions options)
protected

Initializes the internal hyperlinks targets data on document loading.

◆ IsCertified()

bool Aspose::Pdf::Document::IsCertified ( )
protected

◆ IsVentureLicenseValid()

static bool Aspose::Pdf::Document::IsVentureLicenseValid ( System::SharedPtr< LicenseManagement::VentureLicense >  _ventureLicense)
staticprotected

◆ LoadDocument()

void Aspose::Pdf::Document::LoadDocument ( System::SharedPtr< System::IO::Stream input,
System::SharedPtr< LoadOptions options 
)
protected

◆ LoadFrom()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::LoadFrom ( System::String  filename,
System::SharedPtr< LoadOptions options 
)

Loads a file, converting it to PDF.

Parameters
filenameThe path to the file to open.
optionsThe load options.
Exceptions
PdfExceptionIf the file cannot be loaded.
FileNotFoundExceptionIf the file is not found.

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION()

Aspose::Pdf::Document::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( Document  ,
CODEPORTING_ARGS(PdfVersion version)   
)
protected

◆ Merge() [1/4]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Merge ( System::SharedPtr< Document::MergeOptions mergeOptions,
const System::ArrayPtr< System::SharedPtr< Document >> &  documents 
)

Merges documents.

Parameters
mergeOptionsThe merge options.
documentsThe documents to merge.

◆ Merge() [2/4]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Merge ( System::SharedPtr< Document::MergeOptions mergeOptions,
const System::ArrayPtr< System::String > &  files 
)

Merges documents.

Parameters
mergeOptionsThe merge options.
filesThe pdf-files to merge.

◆ Merge() [3/4]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Merge ( const System::ArrayPtr< System::SharedPtr< Document >> &  documents)

Merges documents.

Parameters
documentsThe documents to merge.

◆ Merge() [4/4]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Merge ( const System::ArrayPtr< System::String > &  files)

Merges pdf files.

Parameters
filesThe pdf-files to merge.

◆ MergeDocuments() [1/4]

static ASPOSE_PDF_SHARED_API System::SharedPtr<Document> Aspose::Pdf::Document::MergeDocuments ( System::SharedPtr< Document::MergeOptions mergeOptions,
const System::ArrayPtr< System::String > &  files 
)
static

Merges documents.

Parameters
mergeOptionsThe merge options.
filesThe pdf-files to merge.
Returns
The merged document.

◆ MergeDocuments() [2/4]

static ASPOSE_PDF_SHARED_API System::SharedPtr<Document> Aspose::Pdf::Document::MergeDocuments ( System::SharedPtr< Document::MergeOptions mergeOptions,
const System::ArrayPtr< System::SharedPtr< Document >> &  files 
)
static

Merges documents.

Parameters
mergeOptions
filesThe documents to merge.
Returns
The merged document.

◆ MergeDocuments() [3/4]

static ASPOSE_PDF_SHARED_API System::SharedPtr<Document> Aspose::Pdf::Document::MergeDocuments ( const System::ArrayPtr< System::String > &  files)
static

Merges pdf files.

Parameters
filesThe pdf-files to merge.
Returns
The merged document.

◆ MergeDocuments() [4/4]

static ASPOSE_PDF_SHARED_API System::SharedPtr<Document> Aspose::Pdf::Document::MergeDocuments ( const System::ArrayPtr< System::SharedPtr< Document >> &  documents)
static

Merges documents.

Parameters
documentsThe documents to merge.
Returns
The merged document.

◆ NotifyAboutSubstitution()

void Aspose::Pdf::Document::NotifyAboutSubstitution ( System::SharedPtr< Aspose::Pdf::Text::Font oldFont,
System::SharedPtr< Aspose::Pdf::Text::Font newFont 
)
protected

◆ Optimize()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Optimize ( )

Linearize the document in order to

  • open the first page as quickly as possible;
  • display next page or follow by link to the next page as quickly as possible;
  • display the page incrementally as it arrives when data for a page is delivered over a slow channel (display the most useful data first);
  • permit user interaction, such as following a link, to be performed even before the entire page has been received and displayed. Invoking this method doesn't actually saves the document. On the contrary the document only is prepared to have optimized structure, call then Save to get optimized document.

◆ OptimizeResourceInternal() [1/2]

System::SharedPtr<System::Collections::Generic::Dictionary<int32_t, int32_t> > Aspose::Pdf::Document::OptimizeResourceInternal ( System::SharedPtr< Aspose::Pdf::Optimization::OptimizationOptions strategy)
protected

◆ OptimizeResourceInternal() [2/2]

System::SharedPtr<System::Collections::Generic::Dictionary<int32_t, int32_t> > Aspose::Pdf::Document::OptimizeResourceInternal ( )
protected

◆ OptimizeResources() [1/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::OptimizeResources ( )

Optimize resources in the document:

  1. Resources which are not used on the document pages are removed;
  2. Equal resources are joined into one object;
  3. Unused objects are deleted.

◆ OptimizeResources() [2/2]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::OptimizeResources ( System::SharedPtr< Aspose::Pdf::Optimization::OptimizationOptions strategy)

Optimize resources in the document according to defined optimization strategy.

Parameters
strategyOptimization strategy.

◆ PageNodesToBalancedTree()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::PageNodesToBalancedTree ( uint8_t  nodesNumInSubtrees = DefaultNodesNumInSubtrees)

Organizes page tree nodes in a document into a balanced tree. Only if the document has more than nodesNumInSubtrees page objects, otherwise it does nothing. Do not call this method while iterating over Pages elements, it may give unpredictable results

Parameters
nodesNumInSubtreesDesired number of subnodes. Default value is ten.

◆ PreSave()

static void Aspose::Pdf::Document::PreSave ( System::SharedPtr< PageCollection pages,
System::SharedPtr< SaveOptions saveOptions 
)
staticprotected

◆ ProcessLayers()

void Aspose::Pdf::Document::ProcessLayers ( )
protected

Process layers for generator.

◆ ProcessParagraphs()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::ProcessParagraphs ( )

Process paragraphs for generator.

◆ RegisterAfterImportAnnotation()

void Aspose::Pdf::Document::RegisterAfterImportAnnotation ( System::SharedPtr< Annotations::Annotation annotation)
protected

Register annotation for which AfterImport method must be called after import finished.

Parameters
annotation

◆ RegisterMetadata()

void Aspose::Pdf::Document::RegisterMetadata ( System::SharedPtr< Aspose::Pdf::Metadata metadata)
protected

◆ ReleaseResourcesFor()

void Aspose::Pdf::Document::ReleaseResourcesFor ( System::SharedPtr< Engine::Data::IPdfObject >  obj)
protected

◆ RemoveMetadata()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::RemoveMetadata ( )

Removes metadata from the document.

◆ RemovePdfaCompliance()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::RemovePdfaCompliance ( )

Remove pdfa compliance from the document

◆ RemovePdfUaCompliance()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::RemovePdfUaCompliance ( )

Remove pdfUa compliance from the document

◆ Repair()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Repair ( )

Repairs broken document.

◆ ResetRestrictions()

void Aspose::Pdf::Document::ResetRestrictions ( )
protected

◆ Restrict() [1/5]

static void Aspose::Pdf::Document::Restrict ( System::SharedPtr< Engine::Data::ITrailerable >  tr,
int32_t  index 
)
staticprotected

◆ Restrict() [2/5]

static void Aspose::Pdf::Document::Restrict ( System::SharedPtr< Document doc,
int32_t  index 
)
staticprotected

◆ Restrict() [3/5]

static void Aspose::Pdf::Document::Restrict ( System::SharedPtr< Engine::Data::ITrailerable >  tr,
System::SharedPtr< Collections::AsposeHashDictionary< System::String, System::SharedPtr< System::Object >>>  cache 
)
staticprotected

◆ Restrict() [4/5]

static void Aspose::Pdf::Document::Restrict ( System::SharedPtr< Document doc,
System::SharedPtr< Collections::AsposeHashDictionary< System::String, System::SharedPtr< System::Object >>>  cache 
)
staticprotected

◆ Restrict() [5/5]

template<typename TKey , typename TValue >
static void Aspose::Pdf::Document::Restrict ( System::SharedPtr< Document doc,
System::SharedPtr< System::Collections::Generic::Dictionary< TKey, TValue >>  cache 
)
inlinestaticprotected

◆ Restricted() [1/3]

static bool Aspose::Pdf::Document::Restricted ( System::SharedPtr< Engine::Data::ITrailerable >  tr,
int32_t  index 
)
staticprotected

◆ Restricted() [2/3]

static bool Aspose::Pdf::Document::Restricted ( System::SharedPtr< Document doc,
int32_t  index 
)
staticprotected

◆ Restricted() [3/3]

static bool Aspose::Pdf::Document::Restricted ( System::SharedPtr< LicenseManagement::VentureLicense >  ventureLicense,
int32_t  index 
)
staticprotected

◆ ResumeUpdate()

void Aspose::Pdf::Document::ResumeUpdate ( )
protected

resumes document update

◆ Save() [1/9]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Save ( System::SharedPtr< System::IO::Stream output)

Stores document into stream.

Parameters
outputStream where document shell be stored.

◆ Save() [2/9]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Save ( System::String  outputFileName)

Saves document into the specified file.

Parameters
outputFileNamePath to file where the document will be stored.

◆ Save() [3/9]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Save ( )

Save document incrementally (i.e. using incremental update technique).

In order to save document incrementally we should open the document file for writing. Therefore Document must be initialized with writable stream like in the next code snippet: Document doc = new Document(new FileStream("document.pdf", FileMode.Open, FileAccess.ReadWrite)); // make some changes and save the document incrementally doc.Save();

◆ Save() [4/9]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Save ( System::SharedPtr< SaveOptions options)

Saves the document with save options.

Parameters
optionsSave options.

◆ Save() [5/9]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Save ( System::String  outputFileName,
SaveFormat  format 
)

Saves the document with a new name along with a file format.

Parameters
outputFileNamePath to file where the document will be stored.
formatFormat options.

◆ Save() [6/9]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Save ( System::SharedPtr< System::IO::Stream outputStream,
SaveFormat  format 
)

Saves the document with a new name along with a file format.

Exceptions
ArgumentExceptionArgumentException when HtmlSaveOptions is passed to a method. Save a document to the html stream is not supported. Please use method save to the file.
Parameters
outputStreamStream where the document will be stored.
formatFormat options.

◆ Save() [7/9]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Save ( System::String  outputFileName,
System::SharedPtr< SaveOptions options 
)

Saves the document with a new name setting its save options.

Parameters
outputFileNamePath to file where the document will be stored.
optionsSave options.

◆ Save() [8/9]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Save ( System::SharedPtr< System::IO::Stream outputStream,
System::SharedPtr< SaveOptions options 
)

Saves the document to a stream with a save options.

Exceptions
ArgumentExceptionArgumentException when HtmlSaveOptions is passed to a method. Save a document to the html stream is not supported. Please use method save to the file.
Parameters
outputStreamStream where the document will be stored.
optionsSave options.

◆ Save() [9/9]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::Save ( System::SharedPtr< System::Web::HttpResponse response,
System::String  outputFileName,
ContentDisposition  disposition,
System::SharedPtr< SaveOptions options 
)

Saves the document to a response stream with a save options.

Parameters
responseEncapsulates HTTP-response information.
outputFileNameSimple file name, i.e. without path.
dispositionRepresents a MIME protocol Content-Disposition header.
optionsSave options.

◆ SaveXml()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::SaveXml ( System::String  file)

Save document to XML.

Parameters
fileThe document model xml file

◆ SendTo() [1/4]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::SendTo ( System::SharedPtr< Devices::DocumentDevice device,
System::SharedPtr< System::IO::Stream output 
)

Sends the whole document to the document device for processing.

Parameters
deviceDocument device which is used to process the document.
outputOutput stream contains the results of the document processing with given device.

◆ SendTo() [2/4]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::SendTo ( System::SharedPtr< Devices::DocumentDevice device,
int32_t  fromPage,
int32_t  toPage,
System::SharedPtr< System::IO::Stream output 
)

Sends the certain pages of the document to the document device for processing.

Parameters
deviceDocument device which is used to process the document.
fromPageThe first page for processing.
toPageThe last page for processing.
outputOutput stream contains the results of the document pages processing with given device.

◆ SendTo() [3/4]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::SendTo ( System::SharedPtr< Devices::DocumentDevice device,
System::String  outputFileName 
)

Sends the whole document to the document device for processing.

Parameters
deviceDocument device which is used to process the document.
outputFileNameOutput file name with the results of processing.

◆ SendTo() [4/4]

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::SendTo ( System::SharedPtr< Devices::DocumentDevice device,
int32_t  fromPage,
int32_t  toPage,
System::String  outputFileName 
)

Sends the whole document to the document device for processing.

Parameters
deviceDocument device which is used to process the document.
fromPageThe first page for processing.
toPageThe last page for processing.
outputFileNameOutput file name with the results of processing.

◆ set_AllowReusePageContent()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_AllowReusePageContent ( bool  value)

Allows to merge page contents to optimize docuement size. If used then differnet but duplicated pages may reference to the same content object. Please note that this mode may cause side effects like changing page content when other page is changed.

◆ set_ApsPages()

void Aspose::Pdf::Document::set_ApsPages ( System::SharedPtr< System::Collections::Generic::IList< System::SharedPtr< Aspose::Rendering::ApsPage >>>  value)
protected

List of APS pages for the case of F1-to-F2 conversion when neither F1 nor F2 is PDF.

◆ set_Background()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_Background ( System::SharedPtr< Color value)

Sets the background color of the document.

◆ set_CenterWindow()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_CenterWindow ( bool  value)

Sets flag specifying whether position of the document's window will be centerd on the screen.

◆ set_Collection()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_Collection ( System::SharedPtr< Aspose::Pdf::Collection value)

Gets collection of document.

◆ set_Direction()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_Direction ( Aspose::Pdf::Direction  value)

Sets reading order of text: L2R (left to right) or R2L (right to left).

◆ set_DisableFontLicenseVerifications()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_DisableFontLicenseVerifications ( bool  value)

Many operations with font can't be executed if these operations are prohibited by license of this font. For example some font can't be embedded into PDF document if license rules disable embedding for this font. This flag is used to disable any license restrictions for all fonts in current PDF document. Be careful when using this flag. When it is set it means that person who sets this flag, takes all responsibility of possible license/law violations on himself. So He takes it on it's own risk. It's strongly recommended to use this flag only when you are fully confident that you are not breaking the copyright law. By default false.

◆ set_DisplayDocTitle()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_DisplayDocTitle ( bool  value)

Sets flag specifying whether document's window title bar should display document title.

◆ set_Duplex()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_Duplex ( PrintDuplex  value)

Sets print duplex mode handling option to use when printing the file from the print dialog.

◆ set_EmbedStandardFonts()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_EmbedStandardFonts ( bool  value)

Property which declares that document must embed all standard Type1 fonts which has flag IsEmbedded set into true. All PDF fonts can be embedded into document simply via setting of flag IsEmbedded into true, but PDF standard Type1 fonts is an exception from this rule. Standard Type1 font embedding requires much time, so to embed these fonts it's necessary not only set flag IsEmbedded into true for specified font but also set an additiona flag on document's level - EmbedStandardFonts = true; This property can be set only one time for all fonts. By default false.

◆ set_EnableObjectUnload()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_EnableObjectUnload ( bool  value)

Get or sets flag which enables document partially be unloaded from memory. This allow to decrease memory usage but may have negative effect on perfomance.

◆ set_EnableSignatureSanitization()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_EnableSignatureSanitization ( bool  value)

Sets flag to manage signature fields sanitization. Enabled by default.

◆ set_FitWindow()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_FitWindow ( bool  value)

Sets flag specifying whether document window must be resized to fit the first displayed page.

◆ set_FontReplaceBehavior()

void Aspose::Pdf::Document::set_FontReplaceBehavior ( Text::TextEditOptions::FontReplace  value)
protected

◆ set_HandleSignatureChange()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_HandleSignatureChange ( bool  value)

Throw Exception if the document will save with changes and have signature

◆ set_HideMenubar()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_HideMenubar ( bool  value)

Sets flag specifying whether menu bar should be hidden when document is active.

◆ set_HideToolBar()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_HideToolBar ( bool  value)

Sets flag specifying whether toolbar should be hidden when document is active.

◆ set_HideWindowUI()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_HideWindowUI ( bool  value)

Sets flag specifying whether user interface elements should be hidden when document is active.

◆ set_IgnoreCorruptedObjects()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_IgnoreCorruptedObjects ( bool  value)

Sets flag of ignoring errors in source files. When pages from source document copied into destination document, copying process is stopped with exception if some objects in source files are corrupted when this flag is false. example: dest.Pages.Add(src.Pages); If this flag is set to true then corrupted objects will be replaced with empty values. By default: true.

◆ set_InternalHyperlinkTargets()

void Aspose::Pdf::Document::set_InternalHyperlinkTargets ( System::SharedPtr< System::Collections::Generic::IDictionary< int32_t, System::SharedPtr< System::Collections::Generic::List< System::Drawing::RectangleF >>>>  value)
protected

◆ set_IsConvertMetadataAndCatalogOnly()

void Aspose::Pdf::Document::set_IsConvertMetadataAndCatalogOnly ( bool  value)
protected

Gets convert parameter for pdf/ua converter (Convert only Metadata and Document Catalog if set true)

◆ set_IsLinearized()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_IsLinearized ( bool  value)

Sets a value indicating whether document is linearized.

◆ set_IsParagraphsAdded()

void Aspose::Pdf::Document::set_IsParagraphsAdded ( bool  value)
protected

◆ set_IsXrefGapsAllowed()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_IsXrefGapsAllowed ( bool  value)

Sets the is document pdfa compliant.

◆ set_NonFullScreenPageMode()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_NonFullScreenPageMode ( Aspose::Pdf::PageMode  value)

Sets page mode, specifying how to display the document on exiting full-screen mode.

◆ set_OpenAction()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_OpenAction ( System::SharedPtr< Annotations::IAppointment value)

Sets action performed at document opening.

◆ set_OptimizeSize()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_OptimizeSize ( bool  value)

Sets optimization flag. When pages are added to document, equal resource streams in resultant file are merged into one PDF object if this flag set. This allows to decrease resultant file size but may cause slower execution and larger memory requirements. Default value: false.

◆ set_PageInfo()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_PageInfo ( System::SharedPtr< Aspose::Pdf::PageInfo value)

Sets the page info.(for generator only, not filled in when reading document)

The page info.

◆ set_PageLayout()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_PageLayout ( Aspose::Pdf::PageLayout  value)

Sets page layout which shall be used when the document is opened.

◆ set_PageMode()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_PageMode ( Aspose::Pdf::PageMode  value)

Sets page mode, specifying how document should be displayed when opened.

◆ set_ParentTreeNextKey()

void Aspose::Pdf::Document::set_ParentTreeNextKey ( int32_t  value)
protected

◆ set_PrintScaling()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::set_PrintScaling ( Aspose::Pdf::PrintScaling  value)

Sets the page scaling option that shall be selected when a print dialog is displayed for this document.

◆ SetPlugin()

void Aspose::Pdf::Document::SetPlugin ( Plugins::Plugin  plugin)
protected

◆ SetResourcesFor()

void Aspose::Pdf::Document::SetResourcesFor ( System::SharedPtr< Engine::Data::IPdfObject >  obj,
System::SharedPtr< Resources res 
)
protected

◆ SetSimpleFontEncodingRule()

void Aspose::Pdf::Document::SetSimpleFontEncodingRule ( HtmlSaveOptions::FontEncodingRules  rule)
protected

◆ SetTitle()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::SetTitle ( System::String  title)

Set Title for Pdf Document

Parameters
titleDocument's title

◆ SetXmpMetadata()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Document::SetXmpMetadata ( System::SharedPtr< System::IO::Stream stream)

Set XMP metadata of document.

Parameters
streamStream which contains XMP metadata.

◆ StartOperation()

static void Aspose::Pdf::Document::StartOperation ( )
staticprotected

◆ SuppressUpdate()

void Aspose::Pdf::Document::SuppressUpdate ( )
protected

Suppresses update contents data for all pages The contents is not updated until ResumeUpdate is called

◆ TransformRestrictionKey()

static uint64_t Aspose::Pdf::Document::TransformRestrictionKey ( uint64_t  key)
staticprotected

◆ UncompressObject()

void Aspose::Pdf::Document::UncompressObject ( System::SharedPtr< Engine::Data::IPdfObject >  obj)
protected

◆ UpdateMetadata()

static void Aspose::Pdf::Document::UpdateMetadata ( System::SharedPtr< Engine::PdfDocument >  document,
System::SharedPtr< Aspose::Pdf::Metadata metadata 
)
staticprotected

◆ UpdatePages()

void Aspose::Pdf::Document::UpdatePages ( )
protected

◆ UpdatePagesResources()

void Aspose::Pdf::Document::UpdatePagesResources ( )
protected

Copies shared resources into pages.

◆ UpdateXFormResources()

void Aspose::Pdf::Document::UpdateXFormResources ( )
protected

Copies resources from Page into its XForm.

◆ Validate() [1/3]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::Validate ( System::String  outputLogFileName,
Aspose::Pdf::PdfFormat  format 
)

Validate document into the specified file.

Parameters
outputLogFileNamePath to file where the comments will be stored.
formatThe pdf format.
Returns
The operation result

◆ Validate() [2/3]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::Validate ( System::SharedPtr< System::IO::Stream outputLogStream,
Aspose::Pdf::PdfFormat  format 
)

Validate document into the specified file.

Parameters
outputLogStreamStream where the comments will be stored.
formatThe pdf format.
Returns
The operation result

◆ Validate() [3/3]

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Document::Validate ( System::SharedPtr< PdfFormatConversionOptions options)

Validate document into the specified file.

Parameters
optionsset of options for convert PDF document
Returns
The operation result

◆ ValidateAnnotations()

void Aspose::Pdf::Document::ValidateAnnotations ( )
protected

Member Data Documentation

◆ _commonXObjects

System::SharedPtr<System::Collections::Generic::Dictionary<System::String, System::SharedPtr<Engine::CommonData::Text::Segmenting::TextSegmentBuilder> > > Aspose::Pdf::Document::_commonXObjects
protected

◆ _engineDoc

System::SharedPtr<Engine::IPdfDocument> Aspose::Pdf::Document::_engineDoc
protected

Instance of IPdfDocument used to access to internal document structure.

◆ DefaultNodesNumInSubtrees

const ASPOSE_PDF_SHARED_API uint8_t Aspose::Pdf::Document::DefaultNodesNumInSubtrees
static

◆ FontSaveOptions

System::SharedPtr<Engine::CommonData::Text::Fonts::Utilities::IDocumentFontSaveOptions> Aspose::Pdf::Document::FontSaveOptions
protected

◆ FontSubstitution

System::Event<void(System::SharedPtr<Text::Font>, System::SharedPtr<Text::Font>)> Aspose::Pdf::Document::FontSubstitution

Occurs when font replaces another font in document.

◆ IsPdfAConversionMode

bool Aspose::Pdf::Document::IsPdfAConversionMode
protected

◆ Pipeline

System::SharedPtr<ConversionPipeline> Aspose::Pdf::Document::Pipeline
protected

◆ ReloadAfterLinearization

bool Aspose::Pdf::Document::ReloadAfterLinearization
protected

◆ syncRoot

System::SharedPtr<System::Object> Aspose::Pdf::Document::syncRoot
staticprotected