CreateExportFileWriter Method of the Engine Object

This method creates the ExportFileWriter object. This object provides tools for saving recognized text into PDF format.



HRESULT CreateExportFileWriter(
  BSTR   FileName,
  FileExportFormatEnum ExportFormat,
  IUnknown*  Params,
  IExportFileWriter** Result


IExportFileWriter CreateExportFileWriter(
  BSTR   FileName,
  FileExportFormatEnum ExportFormat,
  object   Params,

Visual Basic .NET

Sub CreateExportFileWriter( _
  FileName As BSTR, _
  ExportFormat As FileExportFormatEnum, _
  Params As Object,  _
) As IExportFileWriter


[in] Specifies the full path to the output file. If this file already exists, it is overwritten without prompt.
[in] Specifies the format of the output file.
Note: Only PDF format is currently supported.
[in] Pass the export parameters object of the type corresponding to your file format through this input parameter. For example, if you are saving your text into an PDF file, create a PDFExportParams object, set necessary parameters in it, and pass it to this method as the Params input parameter. This parameter may be 0, in which case the default values for the export parameters are used, or, if a profile has been loaded, the parameters set by this profile are used.
[out, retval] A pointer to the IExportFileWriter* pointer variable that receives the interface pointer for the resulting ExportFileWriter object. *Result must not be NULL. *Result is guaranteed to be non-NULL after successful method call.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

See also



24.03.2023 8:51:52

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.