Aspose::Pdf::Document::Convert method

Contents
[ ]

Document::Convert(const System::SharedPtr<PdfFormatConversionOptions>&) method

Convert document using specified conversion options.

bool Aspose::Pdf::Document::Convert(const System::SharedPtr<PdfFormatConversionOptions> &options)
ParameterTypeDescription
optionsconst System::SharedPtr<PdfFormatConversionOptions>&set of options for convert PDF document

ReturnValue

The operation result

See Also

Document::Convert(const System::SharedPtr<System::IO::Stream>&, Aspose::Pdf::PdfFormat, ConvertErrorAction) method

Convert document and save errors into the specified stream.

bool Aspose::Pdf::Document::Convert(const System::SharedPtr<System::IO::Stream> &outputLogStream, Aspose::Pdf::PdfFormat format, ConvertErrorAction action)
ParameterTypeDescription
outputLogStreamconst System::SharedPtr<System::IO::Stream>&Stream where the comments will be stored.
formatAspose::Pdf::PdfFormatPdf format.
actionConvertErrorActionAction for objects that can not be converted

ReturnValue

The operation result

See Also

Document::Convert(const System::SharedPtr<System::IO::Stream>&, Aspose::Pdf::PdfFormat, ConvertErrorAction, ConvertTransparencyAction) method

Convert document and save errors into the specified file.

bool Aspose::Pdf::Document::Convert(const System::SharedPtr<System::IO::Stream> &outputLogStream, Aspose::Pdf::PdfFormat format, ConvertErrorAction action, ConvertTransparencyAction transparencyAction)
ParameterTypeDescription
outputLogStreamconst System::SharedPtr<System::IO::Stream>&Stream where the comments will be stored.
formatAspose::Pdf::PdfFormatThe pdf format.
actionConvertErrorActionAction for objects that can not be converted
transparencyActionConvertTransparencyActionAction for image masked objects

ReturnValue

The operation result

See Also

Document::Convert(const System::String&, Aspose::Pdf::PdfFormat, ConvertErrorAction) method

Convert document and save errors into the specified file.

bool Aspose::Pdf::Document::Convert(const System::String &outputLogFileName, Aspose::Pdf::PdfFormat format, ConvertErrorAction action)
ParameterTypeDescription
outputLogFileNameconst System::String&Path to file where the comments will be stored.
formatAspose::Pdf::PdfFormatThe pdf format.
actionConvertErrorActionAction for objects that can not be converted

ReturnValue

The operation result

See Also

Document::Convert(const System::String&, Aspose::Pdf::PdfFormat, ConvertErrorAction, ConvertTransparencyAction) method

Convert document and save errors into the specified file.

bool Aspose::Pdf::Document::Convert(const System::String &outputLogFileName, Aspose::Pdf::PdfFormat format, ConvertErrorAction action, ConvertTransparencyAction transparencyAction)
ParameterTypeDescription
outputLogFileNameconst System::String&Path to file where the comments will be stored.
formatAspose::Pdf::PdfFormatThe pdf format.
actionConvertErrorActionAction for objects that can not be converted
transparencyActionConvertTransparencyActionAction for image masked objects

ReturnValue

The operation result

See Also

Document::Convert(Document::CallBackGetHocr, bool) method

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

bool Aspose::Pdf::Document::Convert(Document::CallBackGetHocr callback, bool flattenImages=false)
ParameterTypeDescription
callbackDocument::CallBackGetHocrAction for images that will be processed by hocr recognize.
flattenImagesboolText in pdf images can be painted using the mechanics of masks, in which case the images must be flattened.

ReturnValue

The operation result. If there are no images in the document returns false.

See Also

Document::Convert(Document::CallBackGetHocrWithPage, bool) method

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

bool Aspose::Pdf::Document::Convert(Document::CallBackGetHocrWithPage callback, bool flattenImages=false)
ParameterTypeDescription
callbackDocument::CallBackGetHocrWithPageAction for images that will be processed by hocr recognize.
flattenImagesboolText in pdf images can be painted using the mechanics of masks, in which case the images must be flattened.

ReturnValue

The operation result. If there are no images in the document returns false.

See Also

Document::Convert(Fixup, const System::SharedPtr<System::IO::Stream>&, bool, const System::ArrayPtr<System::SharedPtr<System::Object>>&) method

Convert document by applying the Fixup.

bool Aspose::Pdf::Document::Convert(Fixup fixup, const System::SharedPtr<System::IO::Stream> &outputLog, bool onlyValidation=false, const System::ArrayPtr<System::SharedPtr<System::Object>> &parameters=nullptr)
ParameterTypeDescription
fixupFixupThe Fixup type.
outputLogconst System::SharedPtr<System::IO::Stream>&The log of process.
onlyValidationboolOnly document validation.
parametersconst System::ArrayPtr<System::SharedPtr<System::Object>>&Properties for Fixup that can not be set.

ReturnValue

The operation result.

See Also

Document::Convert(Fixup, const System::String&, bool, const System::ArrayPtr<System::SharedPtr<System::Object>>&) method

Convert document by applying the Fixup.

bool Aspose::Pdf::Document::Convert(Fixup fixup, const System::String &outputLog, bool onlyValidation=false, const System::ArrayPtr<System::SharedPtr<System::Object>> &parameters=nullptr)
ParameterTypeDescription
fixupFixupThe Fixup type.
outputLogconst System::String&The log of process.
onlyValidationboolOnly document validation.
parametersconst System::ArrayPtr<System::SharedPtr<System::Object>>&Properties for Fixup that can not be set.

ReturnValue

The operation result.

See Also

Document::Convert(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<LoadOptions>&, const System::SharedPtr<System::IO::Stream>&, System::SharedPtr<SaveOptions>) method

Converts stream in source format into stream in destination format.

static void Aspose::Pdf::Document::Convert(const System::SharedPtr<System::IO::Stream> &srcStream, const System::SharedPtr<LoadOptions> &loadOptions, const System::SharedPtr<System::IO::Stream> &dstStream, System::SharedPtr<SaveOptions> saveOptions)
ParameterTypeDescription
srcStreamconst System::SharedPtr<System::IO::Stream>&The source stream.
loadOptionsconst System::SharedPtr<LoadOptions>&The source stream format.
dstStreamconst System::SharedPtr<System::IO::Stream>&The destination stream.
saveOptionsSystem::SharedPtr<SaveOptions>The destination file format.

See Also

Document::Convert(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<LoadOptions>&, const System::String&, System::SharedPtr<SaveOptions>) method

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

static void Aspose::Pdf::Document::Convert(const System::SharedPtr<System::IO::Stream> &srcStream, const System::SharedPtr<LoadOptions> &loadOptions, const System::String &dstFileName, System::SharedPtr<SaveOptions> saveOptions)
ParameterTypeDescription
srcStreamconst System::SharedPtr<System::IO::Stream>&The source stream.
loadOptionsconst System::SharedPtr<LoadOptions>&The source stream format.
dstFileNameconst System::String&The destination file name.
saveOptionsSystem::SharedPtr<SaveOptions>The destination file format.

See Also

Document::Convert(const System::String&, const System::SharedPtr<LoadOptions>&, const System::SharedPtr<System::IO::Stream>&, System::SharedPtr<SaveOptions>) method

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

static void Aspose::Pdf::Document::Convert(const System::String &srcFileName, const System::SharedPtr<LoadOptions> &loadOptions, const System::SharedPtr<System::IO::Stream> &dstStream, System::SharedPtr<SaveOptions> saveOptions)
ParameterTypeDescription
srcFileNameconst System::String&The source file name.
loadOptionsconst System::SharedPtr<LoadOptions>&The source file format.
dstStreamconst System::SharedPtr<System::IO::Stream>&The destination stream.
saveOptionsSystem::SharedPtr<SaveOptions>The destination stream format.

See Also

Document::Convert(const System::String&, const System::SharedPtr<LoadOptions>&, const System::String&, System::SharedPtr<SaveOptions>) method

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

static void Aspose::Pdf::Document::Convert(const System::String &srcFileName, const System::SharedPtr<LoadOptions> &loadOptions, const System::String &dstFileName, System::SharedPtr<SaveOptions> saveOptions)
ParameterTypeDescription
srcFileNameconst System::String&The source file name.
loadOptionsconst System::SharedPtr<LoadOptions>&The source file format.
dstFileNameconst System::String&The destination file name.
saveOptionsSystem::SharedPtr<SaveOptions>The destination file format.

See Also