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

# DocumentExportResult

> DocumentExportResult と ResultFiles — Custom アクティビティまたは Output アクティビティのスクリプトから、エクスポートされたドキュメントファイル（JSON、PDF、画像）にアクセスします。

`DocumentExportResult` は、ドキュメントのエクスポート結果にアクセスするための JavaScript オブジェクトです。

カスタム アクティビティの実行前、または Output (External system) スクリプトの実行前に、Vantage は各ドキュメントをそのアクティビティで設定された形式 (JSON や PDF など) でエクスポートします。これらのエクスポート済みファイルには [`Document.Exports`](/ja/vantage/documentation/skill-designer/process/custom-activity/document) からアクセスでき、サードパーティ システムに送信できます。

<div id="properties">
  ## プロパティ
</div>

| 名前                            | 型                                                                                              | アクセス   | 説明                       |
| :---------------------------- | :--------------------------------------------------------------------------------------------- | :----- | :----------------------- |
| **FileName**                  | string                                                                                         | 読み取り専用 | ファイル名。                   |
| **ExportFormat**              | [ExportFormat](/ja/vantage/documentation/skill-designer/process/custom-activity/export-format) | 読み取り専用 | エクスポート形式。                |
| **`Properties["PageIndex"]`** | string                                                                                         | 読み取り専用 | ページの通し番号 (JPGエクスポートのみ) 。 |

<div id="methods">
  ## メソッド
</div>

<div id="tojson">
  ### ToJson
</div>

```javascript theme={null}
string ToJson();
```

エクスポート結果を JSON 形式の string として返します。JSON 系フォーマット (JSON、FieldsJson、OcrJson) の場合にのみ有効です。

<div id="resultfiles">
  ## ResultFiles
</div>

`DocumentExportResult` オブジェクトの読み取り専用コレクションです。結果はエクスポート形式で絞り込めます。

<div id="methods">
  ### メソッド
</div>

<div id="getbyformat">
  #### GetByFormat
</div>

```javascript theme={null}
DocumentExportResult GetByFormat(ExportFormat format);
```

指定したエクスポート形式の `DocumentExportResult` を返します。

<div id="related-topics">
  ## 関連項目
</div>

* [ドキュメント](/ja/vantage/documentation/skill-designer/process/custom-activity/document)
* [ExportFormat](/ja/vantage/documentation/skill-designer/process/custom-activity/export-format)
* [カスタム アクティビティ](/ja/vantage/documentation/skill-designer/process/custom-activity/custom-activity)
* [結果を外部システムにエクスポートする](/ja/vantage/documentation/skill-designer/process/output-activity/export-external-system)
* [オブジェクト モデル](/ja/vantage/documentation/skill-designer/process/custom-activity/object-model)
