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

# エクスポートパラメーターの調整

認識データは XLS、XLSX、DBF、TXT、CSV、XML、または JSON 形式でファイルに保存できます。また、ドキュメントの電子コピーを PDF や PDF/A などの形式で保存することもできます。

ファイルへのエクスポートのパラメーターは、[**FileExportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fileexportparams.md) オブジェクトで指定できます。このオブジェクトは [**ExportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/exportparams.md) オブジェクトのサブオブジェクトです。[**ExportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/exportparams.md) オブジェクトは、[**Project**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project.md) オブジェクトおよび [**Batch**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md) オブジェクトのエクスポートメソッドと、[**ExportProfiles**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/exportprofiles.md) オブジェクトの [**AddNew**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/exportprofiles-addnew.md) メソッドで使用されます。

**FileExportParams** オブジェクトには、サポートされているデータのエクスポート形式ごとに、対応するエクスポートパラメーターのサブオブジェクトが用意されています。具体的には次のとおりです。

* [**ExcelExportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/excelexportparams.md)：XLS、XLSX 形式用
* [**DBFExportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/dbfexportparams.md)：DBF 形式用
* [**TextExportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/textexportparams.md)：TXT および CSV 形式用
* [**XMLExportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/xmlexportparams.md)：XML 形式用
* [**JSONExportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/jsonexportparams.md)：JSON 形式用

ドキュメントの電子コピーを保存するには、[**ImageExportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageexportparams.md) オブジェクトを使用できます。エクスポートのパラメーターは、[**FileExportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fileexportparams.md) オブジェクトの [**ImageExportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fileexportparams.md#imageexportparams) プロパティで設定します。

認識されていないドキュメントや、Document Definition が適用されていないドキュメントをエクスポートすることもできます。その場合は、[**ProjectProperties**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/projectproperties.md) オブジェクトまたは [**BatchTypeParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batchtypeparams.md) オブジェクトの **ShouldExportUnknownDocuments** プロパティを使用します。このような不明なドキュメントのエクスポートパラメーターは、**ExportParamsForUnknownDocuments** プロパティで指定します。なお、エクスポートするドキュメントを含むバッチが属するバッチタイプのエクスポートパラメーターは、プロジェクトのエクスポートパラメーターよりも優先されます。

## XLS、XLSX、DBF、TXT、CSV、XML、JSON 形式で保存する

1. [**Engine**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine.md) オブジェクトの [**CreateFileExportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-createxxx.md) メソッドを使用して **FileExportParams** オブジェクトを作成するか、**ExportParams** オブジェクトの **FileExportParams** プロパティから取得します。
2. [**IFileExportParams::FileFormat**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fileexportparams.md#fileformat) プロパティで、必要なエクスポート形式を指定します。
3. **FileExportParams** オブジェクトの [**DBFParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fileexportparams.md#dbfparams)、[**ExcelParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fileexportparams.md#excelparams)、[**TextParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fileexportparams.md#textparams)、[**XMLParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fileexportparams.md#xmlparams)、[**JSONParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fileexportparams.md#jsonparams) のいずれかのプロパティを使用して、指定した形式でのエクスポートのパラメーターを設定します。
4. **Project** オブジェクトの [**Export**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project-export.md) メソッドを使用してファイルをエクスポートします。

> [accordion] C# コード
>
> ```csharp theme={null}
> // FileExportParams オブジェクトへの参照を取得する
> IExportParams exportParams = engine.CreateExportParams(ExportDestinationTypeEnum.EDT_File);
> IFileExportParams fileExportParams = exportParams.FileExportParams;
> // ファイル形式を指定する
> fileExportParams.FileFormat = FileExportFormatEnum.FEF_Text;
> // 選択した形式でのエクスポートのパラメーターを指定する
> ITextExportParams textExportParams = fileExportParams.TextParams;
> ...
> // 認識データを保存する
> project.Export(null, exportParams);
> ```

## PDF (PDF/A) 形式での保存

1. [**Engine**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine.md) オブジェクトの [**CreateFileExportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-createxxx.md) メソッドを使用して **FileExportParams** オブジェクトを作成するか、**ExportParams** オブジェクトの **FileExportParams** プロパティから取得します。
2. **FileExportParams** オブジェクトの [**ExportOriginalImages**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fileexportparams.md#exportoriginalimages) プロパティを TRUE に設定します。
3. [**ImageExportParams**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageexportparams.md) オブジェクトの [**Format**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageexportparams.md) プロパティを IFF\_Pdf に設定します。
4. **ImageExportParams** オブジェクトの [**CreateSearchablePDF**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/imageexportparams.md#createsearchablepdf) プロパティを TRUE に設定します。
5. **Project** オブジェクトの [**Export**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project-export.md) メソッドを使用して PDF ファイルをエクスポートします。

> [accordion] C# コード
>
> ```csharp theme={null}
> // FileExportParams オブジェクトへの参照を取得します
> IExportParams exportParams = engine.CreateExportParams(ExportDestinationTypeEnum.EDT_File);
> IFileExportParams fileExportParams = exportParams.FileExportParams;
> // パラメーターを指定します
> fileExportParams.ExportOriginalImages = true;
> fileExportParams.ImageExportParams.Format = ImageFileFormatEnum.IFF_Pdf;
> fileExportParams.ImageExportParams.CreateSearchablePDF = true;
> ...
> // PDF を保存します
> project.Export(null, exportParams);
> ```

## 関連項目

[あらかじめ設定された ABBYY FlexiCapture プロジェクトによる処理。ステップ 5: 結果のエクスポート](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/engine-exporting.md)
