> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateExportFileWriter Method of the Engine Object

<Warning>
  The ExportFileWriter object is deprecated and will be removed in future versions.
</Warning>

This method creates the [ExportFileWriter](/fine-reader/engine/api-reference/mechanism-objects/exportfilewriter) object. This object provides tools for saving recognized text into PDF format.

## Syntax

### C++

```cpp theme={null}
HRESULT CreateExportFileWriter(
  BSTR   FileName,
  FileExportFormatEnum ExportFormat,
  IUnknown*  Params,
  IExportFileWriter** Result
);
```

### C\#

```csharp theme={null}
IExportFileWriter CreateExportFileWriter(
  BSTR   FileName,
  FileExportFormatEnum ExportFormat,
  object   Params,
);
```

### Visual Basic .NET

```cpp theme={null}
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.
</Note>

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](/fine-reader/engine/api-reference/parameter-objects/export-parameters/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](/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles) has been loaded, the parameters set by this profile are used.

<Warning>
  In Linux, if you are working with ABBYY FineReader Engine loaded out-of-process, you must pass NULL for this parameter.
</Warning>

Result

\[out, retval] A pointer to the IExportFileWriter\* pointer variable that receives the interface pointer for the resulting [ExportFileWriter](/fine-reader/engine/api-reference/mechanism-objects/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](/fine-reader/engine/api-reference/return-codes).

## See also

[Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface)

[ExportFileWriter](/fine-reader/engine/api-reference/mechanism-objects/exportfilewriter)
