CreateExportFileWriter Method of the Engine Object
This method creates the ExportFileWriter object. This object provides tools for saving recognized text into PDF format.
Syntax
C++
HRESULT CreateExportFileWriter( BSTR FileName, FileExportFormatEnum ExportFormat, IUnknown* Params, IExportFileWriter** Result );
C#
IExportFileWriter CreateExportFileWriter(
BSTR FileName,
FileExportFormatEnum ExportFormat,
object Params,
);
Visual Basic .NET
Sub CreateExportFileWriter( _ FileName As BSTR, _ ExportFormat As FileExportFormatEnum, _ Params As Object, _ ) As IExportFileWriter
Parameters
- FileName
- [in] Specifies the full path to the output file. If this file already exists, it is overwritten without prompt.
- ExportFormat
- [in] Specifies the format of the output file.
- Note: Only PDF format is currently supported.
- Params
- [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.
- Result
- [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
17.09.2024 15:14:41