Aspose::Pdf::Document::Convert method
Document::Convert(const System::SharedPtr<PdfFormatConversionOptions>&) method
Convert document using specified conversion options.
bool Aspose::Pdf::Document::Convert(const System::SharedPtr<PdfFormatConversionOptions> &options)
| Parameter | Type | Description |
|---|---|---|
| options | const System::SharedPtr<PdfFormatConversionOptions>& | set of options for convert PDF document |
ReturnValue
The operation result
See Also
- Typedef SharedPtr
- Class PdfFormatConversionOptions
- Class Document
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
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)
| Parameter | Type | Description |
|---|---|---|
| outputLogStream | const System::SharedPtr<System::IO::Stream>& | Stream where the comments will be stored. |
| format | Aspose::Pdf::PdfFormat | Pdf format. |
| action | ConvertErrorAction | Action for objects that can not be converted |
ReturnValue
The operation result
See Also
- Typedef SharedPtr
- Class Stream
- Enum PdfFormat
- Enum ConvertErrorAction
- Class Document
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
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)
| Parameter | Type | Description |
|---|---|---|
| outputLogStream | const System::SharedPtr<System::IO::Stream>& | Stream where the comments will be stored. |
| format | Aspose::Pdf::PdfFormat | The pdf format. |
| action | ConvertErrorAction | Action for objects that can not be converted |
| transparencyAction | ConvertTransparencyAction | Action for image masked objects |
ReturnValue
The operation result
See Also
- Typedef SharedPtr
- Class Stream
- Enum PdfFormat
- Enum ConvertErrorAction
- Enum ConvertTransparencyAction
- Class Document
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
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)
| Parameter | Type | Description |
|---|---|---|
| outputLogFileName | const System::String& | Path to file where the comments will be stored. |
| format | Aspose::Pdf::PdfFormat | The pdf format. |
| action | ConvertErrorAction | Action for objects that can not be converted |
ReturnValue
The operation result
See Also
- Class String
- Enum PdfFormat
- Enum ConvertErrorAction
- Class Document
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
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)
| Parameter | Type | Description |
|---|---|---|
| outputLogFileName | const System::String& | Path to file where the comments will be stored. |
| format | Aspose::Pdf::PdfFormat | The pdf format. |
| action | ConvertErrorAction | Action for objects that can not be converted |
| transparencyAction | ConvertTransparencyAction | Action for image masked objects |
ReturnValue
The operation result
See Also
- Class String
- Enum PdfFormat
- Enum ConvertErrorAction
- Enum ConvertTransparencyAction
- Class Document
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
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)
| Parameter | Type | Description |
|---|---|---|
| callback | Document::CallBackGetHocr | Action for images that will be processed by hocr recognize. |
| flattenImages | bool | Text 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
- Typedef CallBackGetHocr
- Class Document
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
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)
| Parameter | Type | Description |
|---|---|---|
| callback | Document::CallBackGetHocrWithPage | Action for images that will be processed by hocr recognize. |
| flattenImages | bool | Text 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
- Typedef CallBackGetHocrWithPage
- Class Document
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
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>> ¶meters=nullptr)
| Parameter | Type | Description |
|---|---|---|
| fixup | Fixup | The Fixup type. |
| outputLog | const System::SharedPtr<System::IO::Stream>& | The log of process. |
| onlyValidation | bool | Only document validation. |
| parameters | const System::ArrayPtr<System::SharedPtr<System::Object>>& | Properties for Fixup that can not be set. |
ReturnValue
The operation result.
See Also
- Enum Fixup
- Typedef SharedPtr
- Class Stream
- Typedef ArrayPtr
- Class Object
- Class Document
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
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>> ¶meters=nullptr)
| Parameter | Type | Description |
|---|---|---|
| fixup | Fixup | The Fixup type. |
| outputLog | const System::String& | The log of process. |
| onlyValidation | bool | Only document validation. |
| parameters | const System::ArrayPtr<System::SharedPtr<System::Object>>& | Properties for Fixup that can not be set. |
ReturnValue
The operation result.
See Also
- Enum Fixup
- Class String
- Typedef ArrayPtr
- Typedef SharedPtr
- Class Object
- Class Document
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
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)
| Parameter | Type | Description |
|---|---|---|
| srcStream | const System::SharedPtr<System::IO::Stream>& | The source stream. |
| loadOptions | const System::SharedPtr<LoadOptions>& | The source stream format. |
| dstStream | const System::SharedPtr<System::IO::Stream>& | The destination stream. |
| saveOptions | System::SharedPtr<SaveOptions> | The destination file format. |
See Also
- Typedef SharedPtr
- Class Stream
- Class LoadOptions
- Class SaveOptions
- Class Document
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
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)
| Parameter | Type | Description |
|---|---|---|
| srcStream | const System::SharedPtr<System::IO::Stream>& | The source stream. |
| loadOptions | const System::SharedPtr<LoadOptions>& | The source stream format. |
| dstFileName | const System::String& | The destination file name. |
| saveOptions | System::SharedPtr<SaveOptions> | The destination file format. |
See Also
- Typedef SharedPtr
- Class Stream
- Class LoadOptions
- Class String
- Class SaveOptions
- Class Document
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
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)
| Parameter | Type | Description |
|---|---|---|
| srcFileName | const System::String& | The source file name. |
| loadOptions | const System::SharedPtr<LoadOptions>& | The source file format. |
| dstStream | const System::SharedPtr<System::IO::Stream>& | The destination stream. |
| saveOptions | System::SharedPtr<SaveOptions> | The destination stream format. |
See Also
- Class String
- Typedef SharedPtr
- Class LoadOptions
- Class Stream
- Class SaveOptions
- Class Document
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++
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)
| Parameter | Type | Description |
|---|---|---|
| srcFileName | const System::String& | The source file name. |
| loadOptions | const System::SharedPtr<LoadOptions>& | The source file format. |
| dstFileName | const System::String& | The destination file name. |
| saveOptions | System::SharedPtr<SaveOptions> | The destination file format. |
See Also
- Class String
- Typedef SharedPtr
- Class LoadOptions
- Class SaveOptions
- Class Document
- Namespace Aspose::Pdf
- Library Aspose.PDF for C++