Skip to main content
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 to send them to third-party systems.

Properties

Methods

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

Returns the DocumentExportResult for the specified export format.

Examples

The following script gets the JSON and PDF export results for a document and sends them to an external system:
The following script lists each exported JPG page image with its file name and page number: