> ## 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 and ResultFiles — access exported document files (JSON, PDF, images) from a Custom or Output activity script.

`DocumentExportResult` is a JavaScript object that provides access to document export results.

Before a Custom activity runs — or before an Output (External system) script runs — Vantage exports each document to the formats configured on the activity (for example, JSON or PDF). Access these exported files via [`Document.Exports`](/vantage/documentation/skill-designer/process/custom-activity/document) to send them to third-party systems.

## Properties

| Name                          | Type                                                                                        | Access    | Description                             |
| :---------------------------- | :------------------------------------------------------------------------------------------ | :-------- | :-------------------------------------- |
| **FileName**                  | string                                                                                      | Read-only | The name of the file.                   |
| **ExportFormat**              | [ExportFormat](/vantage/documentation/skill-designer/process/custom-activity/export-format) | Read-only | The export format.                      |
| **`Properties["PageIndex"]`** | string                                                                                      | Read-only | Page sequence number (JPG export only). |

## Methods

### ToJson

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

Returns the export results as a JSON-formatted string. Only works for JSON formats (JSON, FieldsJson, OcrJson).

## ResultFiles

A read-only collection of `DocumentExportResult` objects. Filter results by export format.

### Methods

#### GetByFormat

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

Returns the `DocumentExportResult` for the specified export format.

## Related topics

<CardGroup cols={3}>
  <Card title="Document" icon="file-lines" href="/vantage/documentation/skill-designer/process/custom-activity/document">
    The document currently being processed by the Custom activity.
  </Card>

  <Card title="ExportFormat" icon="list" href="/vantage/documentation/skill-designer/process/custom-activity/export-format">
    Formats available for files exported from a Custom or Output activity.
  </Card>

  <Card title="Custom activity" icon="code" href="/vantage/documentation/skill-designer/process/custom-activity/custom-activity">
    Extend skills with scripted logic and third-party integrations.
  </Card>

  <Card title="Export to an external system" icon="file-export" href="/vantage/documentation/skill-designer/process/output-activity/export-external-system">
    Send transaction results to a third-party system via a custom script.
  </Card>

  <Card title="Object model" icon="diagram-project" href="/vantage/documentation/skill-designer/process/custom-activity/object-model">
    Full JavaScript object reference for Custom activity scripts.
  </Card>
</CardGroup>
