CreateExportFileWriter Method of the Engine Object
This method creates the ExportFileWriter object. This object provides tools for saving recognized text into PDF format.
Syntax
HRESULT CreateExportFileWriter( BSTR FileName, FileExportFormatEnum ExportFormat, IUnknown* Params, IExportFileWriter** Result );
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.
- Important! If you are working with ABBYY FineReader Engine loaded out-of-process, you must pass NULL for this parameter.
- 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
7/3/2024 8:50:25 AM