Document.Convert
Convert(Fixup, Stream, bool, object[])
Convert document by applying the Fixup.
public bool Convert(Fixup fixup, Stream outputLog, bool onlyValidation = false,
object[] parameters = null)
Parameter | Type | Description |
---|---|---|
fixup | Fixup | The Fixup type. |
outputLog | Stream | The log of process. |
onlyValidation | Boolean | Only document validation. |
parameters | Object[] | Properties for Fixup that can not be set. |
Return Value
The operation result.
See Also
- enum Fixup
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Convert(Fixup, string, bool, object[])
Convert document by applying the Fixup.
public bool Convert(Fixup fixup, string outputLog, bool onlyValidation = false,
object[] parameters = null)
Parameter | Type | Description |
---|---|---|
fixup | Fixup | The Fixup type. |
outputLog | String | The log of process. |
onlyValidation | Boolean | Only document validation. |
parameters | Object[] | Properties for Fixup that can not be set. |
Return Value
The operation result.
See Also
- enum Fixup
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Convert(string, LoadOptions, string, SaveOptions)
Converts source file in source format into destination file in destination format.
public static void Convert(string srcFileName, LoadOptions loadOptions, string dstFileName,
SaveOptions saveOptions)
Parameter | Type | Description |
---|---|---|
srcFileName | String | The source file name. |
loadOptions | LoadOptions | The source file format. |
dstFileName | String | The destination file name. |
saveOptions | SaveOptions | The destination file format. |
See Also
- class LoadOptions
- class SaveOptions
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Convert(Stream, LoadOptions, string, SaveOptions)
Converts stream in source format into destination file in destination format.
public static void Convert(Stream srcStream, LoadOptions loadOptions, string dstFileName,
SaveOptions saveOptions)
Parameter | Type | Description |
---|---|---|
srcStream | Stream | The source stream. |
loadOptions | LoadOptions | The source stream format. |
dstFileName | String | The destination file name. |
saveOptions | SaveOptions | The destination file format. |
See Also
- class LoadOptions
- class SaveOptions
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Convert(string, LoadOptions, Stream, SaveOptions)
Converts source file in source format into stream in destination format.
public static void Convert(string srcFileName, LoadOptions loadOptions, Stream dstStream,
SaveOptions saveOptions)
Parameter | Type | Description |
---|---|---|
srcFileName | String | The source file name. |
loadOptions | LoadOptions | The source file format. |
dstStream | Stream | The destination stream. |
saveOptions | SaveOptions | The destination stream format. |
See Also
- class LoadOptions
- class SaveOptions
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Convert(Stream, LoadOptions, Stream, SaveOptions)
Converts stream in source format into stream in destination format.
public static void Convert(Stream srcStream, LoadOptions loadOptions, Stream dstStream,
SaveOptions saveOptions)
Parameter | Type | Description |
---|---|---|
srcStream | Stream | The source stream. |
loadOptions | LoadOptions | The source stream format. |
dstStream | Stream | The destination stream. |
saveOptions | SaveOptions | The destination file format. |
See Also
- class LoadOptions
- class SaveOptions
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Convert(string, PdfFormat, ConvertErrorAction, ConvertTransparencyAction)
Convert document and save errors into the specified file.
public bool Convert(string outputLogFileName, PdfFormat format, ConvertErrorAction action,
ConvertTransparencyAction transparencyAction)
Parameter | Type | Description |
---|---|---|
outputLogFileName | String | Path to file where the comments will be stored. |
format | PdfFormat | The pdf format. |
action | ConvertErrorAction | Action for objects that can not be converted |
transparencyAction | ConvertTransparencyAction | Action for image masked objects |
Return Value
The operation result
See Also
- enum PdfFormat
- enum ConvertErrorAction
- enum ConvertTransparencyAction
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Convert(Stream, PdfFormat, ConvertErrorAction, ConvertTransparencyAction)
Convert document and save errors into the specified file.
public bool Convert(Stream outputLogStream, PdfFormat format, ConvertErrorAction action,
ConvertTransparencyAction transparencyAction)
Parameter | Type | Description |
---|---|---|
outputLogStream | Stream | Stream where the comments will be stored. |
format | PdfFormat | The pdf format. |
action | ConvertErrorAction | Action for objects that can not be converted |
transparencyAction | ConvertTransparencyAction | Action for image masked objects |
Return Value
The operation result
See Also
- enum PdfFormat
- enum ConvertErrorAction
- enum ConvertTransparencyAction
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Convert(string, PdfFormat, ConvertErrorAction)
Convert document and save errors into the specified file.
public bool Convert(string outputLogFileName, PdfFormat format, ConvertErrorAction action)
Parameter | Type | Description |
---|---|---|
outputLogFileName | String | Path to file where the comments will be stored. |
format | PdfFormat | The pdf format. |
action | ConvertErrorAction | Action for objects that can not be converted |
Return Value
The operation result
See Also
- enum PdfFormat
- enum ConvertErrorAction
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Convert(PdfFormatConversionOptions)
Convert document using specified conversion options
public bool Convert(PdfFormatConversionOptions options)
Parameter | Type | Description |
---|---|---|
options | PdfFormatConversionOptions | set of options for convert PDF document |
Return Value
The operation result
See Also
- class PdfFormatConversionOptions
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Convert(CallBackGetHocrWithPage, bool)
Recognize images inside the document and add hocr strings over it.
public bool Convert(CallBackGetHocrWithPage callback, bool flattenImages = false)
Parameter | Type | Description |
---|---|---|
callback | CallBackGetHocrWithPage | Action for images that will be processed by hocr recognize. |
flattenImages | Boolean | Text in pdf images can be painted using the mechanics of masks, in which case the images must be flattened. |
Return Value
The operation result. If there are no images in the document returns !:false.
See Also
- delegate CallBackGetHocrWithPage
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Convert(CallBackGetHocr, bool)
Recognize images inside the document and add hocr strings over it.
public bool Convert(CallBackGetHocr callback, bool flattenImages = false)
Parameter | Type | Description |
---|---|---|
callback | CallBackGetHocr | Action for images that will be processed by hocr recognize. |
flattenImages | Boolean | Text in pdf images can be painted using the mechanics of masks, in which case the images must be flattened. |
Return Value
The operation result. If there are no images in the document returns !:false.
See Also
- delegate CallBackGetHocr
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF
Convert(Stream, PdfFormat, ConvertErrorAction)
Convert document and save errors into the specified stream.
public bool Convert(Stream outputLogStream, PdfFormat format, ConvertErrorAction action)
Parameter | Type | Description |
---|---|---|
outputLogStream | Stream | Stream where the comments will be stored. |
format | PdfFormat | Pdf format. |
action | ConvertErrorAction | Action for objects that can not be converted |
Return Value
The operation result
See Also
- enum PdfFormat
- enum ConvertErrorAction
- class Document
- namespace Aspose.Pdf
- assembly Aspose.PDF