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

NameTypeAccessDescription
FileNamestringRead-onlyThe name of the file.
ExportFormatExportFormatRead-onlyThe export format.
Properties["PageIndex"]stringRead-onlyPage sequence number (JPG export only).

Methods

ToJson

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

DocumentExportResult GetByFormat(ExportFormat format);
Returns the DocumentExportResult for the specified export format.