> ## 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.

# Tuning Export Parameters

You can save recognized data to a file in XLS, XLSX, DBF, TXT, CSV, XML, or JSON format, or save an electronic copy of your document, e.g. in PDF, PDF/A format.

The parameters of export to file can be specified via the [**FileExportParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fileexportparams.md) object. This object is a subobject of the [**ExportParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/exportparams.md) object which is used in the export methods of the [**Project**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project.md) and [**Batch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.md) objects and in the [**AddNew**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/exportprofiles-addnew.md) method of the [**ExportProfiles**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/exportprofiles.md) object.

For each supported data export format, **FileExportParams** object provides a corresponding export parameter subobject. These are:

* [**ExcelExportParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/excelexportparams.md) for XLS, XLSX formats;
* [**DBFExportParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/dbfexportparams.md) for DBF format;
* [**TextExportParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/textexportparams.md) for TXT and CSV formats;
* [**XMLExportParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/xmlexportparams.md) for XML format;
* [**JSONExportParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/jsonexportparams.md) for JSON format.

To save an electronic copy of your documents, you can use the [**ImageExportParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imageexportparams.md) object. The parameters of export are set in the [**ImageExportParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fileexportparams.md#imageexportparams) property of the [**FileExportParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fileexportparams.md) object.

You also have an opportunity to export documents that haven't been recognized or to which no Document Definition has been applied. For doing that, use the **ShouldExportUnknownDocuments** property of the [**ProjectProperties**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/projectproperties.md) or [**BatchTypeParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batchtypeparams.md) objects. Export parameters for exporting such unknown documents are specified by the **ExportParamsForUnknownDocuments** properties. Note that the export parameters of the batch type to which the batch with exported documents belongs have a higher priority than export parameters of the project.

## Saving to XLS, XLSX, DBF, TXT, CSV, XML, and JSON formats

1. Create a **FileExportParams** object using the [**CreateFileExportParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine-createxxx.md) method of the [**Engine**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine.md) object, or receive it via the **FileExportParams** property of the **ExportParams** object.
2. Specify the required export format with the help of the [**IFileExportParams::FileFormat**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fileexportparams.md#fileformat) property.
3. Use the [**DBFParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fileexportparams.md#dbfparams), [**ExcelParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fileexportparams.md#excelparams), [**TextParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fileexportparams.md#textparams), [**XMLParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fileexportparams.md#xmlparams), or [**JSONParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fileexportparams.md#jsonparams) property of the **FileExportParams** object to set the parameters of export to the specified format.
4. Export the file using [**Export**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project-export.md) method of the **Project** object.

> [accordion] C# code
>
> ```csharp theme={null}
> // Receive a reference to the FileExportParams object
> IExportParams exportParams = engine.CreateExportParams(ExportDestinationTypeEnum.EDT_File);
> IFileExportParams fileExportParams = exportParams.FileExportParams;
> // Specify the file format
> fileExportParams.FileFormat = FileExportFormatEnum.FEF_Text;
> // Specify the parameters of export to the selected format
> ITextExportParams textExportParams = fileExportParams.TextParams;
> ...
> // Safe the recognized data
> project.Export(null, exportParams);
> ```

## Saving to PDF (PDF/A) format

1. Create a **FileExportParams** object using the [**CreateFileExportParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine-createxxx.md) method of the [**Engine**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine.md) object, or receive it via the **FileExportParams** property of the **ExportParams** object.
2. Set the [**ExportOriginalImages**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fileexportparams.md#exportoriginalimages) property of the **FileExportParams** object to TRUE.
3. Set the [**Format**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imageexportparams.md) property of the [**ImageExportParams**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imageexportparams.md) object to IFF\_Pdf.
4. Set the [**CreateSearchablePDF**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/imageexportparams.md#createsearchablepdf) property of the **ImageExportParams** object to TRUE.
5. Export PDF file using [**Export**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project-export.md) method of the **Project** object.

> [accordion] C# code
>
> ```csharp theme={null}
> // Receive a reference to the FileExportParams object
> IExportParams exportParams = engine.CreateExportParams(ExportDestinationTypeEnum.EDT_File);
> IFileExportParams fileExportParams = exportParams.FileExportParams;
> // Specify the parameters
> fileExportParams.ExportOriginalImages = true;
> fileExportParams.ImageExportParams.Format = ImageFileFormatEnum.IFF_Pdf;
> fileExportParams.ImageExportParams.CreateSearchablePDF = true;
> ...
> // Safe PDF
> project.Export(null, exportParams);
> ```

## See also

[Processing with a Preconfigured ABBYY FlexiCapture Project. Step 5: Export Result](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/engine-exporting.md)
