Document.Convert

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)
ParameterTypeDescription
srcFileNameStringThe source file name.
loadOptionsLoadOptionsThe source file format.
dstFileNameStringThe destination file name.
saveOptionsSaveOptionsThe destination file format.

See Also


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)
ParameterTypeDescription
srcStreamStreamThe source stream.
loadOptionsLoadOptionsThe source stream format.
dstFileNameStringThe destination file name.
saveOptionsSaveOptionsThe destination file format.

See Also


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)
ParameterTypeDescription
srcFileNameStringThe source file name.
loadOptionsLoadOptionsThe source file format.
dstStreamStreamThe destination stream.
saveOptionsSaveOptionsThe destination stream format.

See Also


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)
ParameterTypeDescription
srcStreamStreamThe source stream.
loadOptionsLoadOptionsThe source stream format.
dstStreamStreamThe destination stream.
saveOptionsSaveOptionsThe destination file format.

See Also


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)
ParameterTypeDescription
outputLogFileNameStringPath to file where the comments will be stored.
formatPdfFormatThe pdf format.
actionConvertErrorActionAction for objects that can not be converted
transparencyActionConvertTransparencyActionAction for image masked objects

Return Value

The operation result

See Also


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)
ParameterTypeDescription
outputLogStreamStreamStream where the comments will be stored.
formatPdfFormatThe pdf format.
actionConvertErrorActionAction for objects that can not be converted
transparencyActionConvertTransparencyActionAction for image masked objects

Return Value

The operation result

See Also


Convert(string, PdfFormat, ConvertErrorAction)

Convert document and save errors into the specified file.

public bool Convert(string outputLogFileName, PdfFormat format, ConvertErrorAction action)
ParameterTypeDescription
outputLogFileNameStringPath to file where the comments will be stored.
formatPdfFormatThe pdf format.
actionConvertErrorActionAction for objects that can not be converted

Return Value

The operation result

See Also


Convert(PdfFormatConversionOptions)

Convert document using specified conversion options

public bool Convert(PdfFormatConversionOptions options)
ParameterTypeDescription
optionsPdfFormatConversionOptionsset of options for convert PDF document

Return Value

The operation result

See Also


Convert(CallBackGetHocrWithPage, bool)

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

public bool Convert(CallBackGetHocrWithPage callback, bool flattenImages = false)
ParameterTypeDescription
callbackCallBackGetHocrWithPageAction for images that will be processed by hocr recognize.
flattenImagesBooleanText 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


Convert(CallBackGetHocr, bool)

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

public bool Convert(CallBackGetHocr callback, bool flattenImages = false)
ParameterTypeDescription
callbackCallBackGetHocrAction for images that will be processed by hocr recognize.
flattenImagesBooleanText 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


Convert(Stream, PdfFormat, ConvertErrorAction)

Convert document and save errors into the specified stream.

public bool Convert(Stream outputLogStream, PdfFormat format, ConvertErrorAction action)
ParameterTypeDescription
outputLogStreamStreamStream where the comments will be stored.
formatPdfFormatPdf format.
actionConvertErrorActionAction for objects that can not be converted

Return Value

The operation result

See Also


Convert(Fixup, Stream, bool, object[])

Convert document by applying the Fixup.

public bool Convert(Fixup fixup, Stream outputLog, bool onlyValidation = false, 
    object[] parameters = null)
ParameterTypeDescription
fixupFixupThe Fixup type.
outputLogStreamThe log of process.
onlyValidationBooleanOnly document validation.
parametersObject[]Properties for Fixup that can not be set.

Return Value

The operation result.

See Also


Convert(Fixup, string, bool, object[])

Convert document by applying the Fixup.

public bool Convert(Fixup fixup, string outputLog, bool onlyValidation = false, 
    object[] parameters = null)
ParameterTypeDescription
fixupFixupThe Fixup type.
outputLogStringThe log of process.
onlyValidationBooleanOnly document validation.
parametersObject[]Properties for Fixup that can not be set.

Return Value

The operation result.

See Also