Skip to main content

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.

Document represents the document currently being processed in a Custom activity script — its fields, pages, classification results, source files, and export results.
Depending on which processing stages have completed, some properties may return empty values. For example, only DocumentId and SourceFiles are populated before any skill is applied. ResultClass is populated after a Classification skill runs. Fields is populated after extraction.

Properties

NameTypeAccessDescription
ClassConfidencesClassConfidenceModel[]Read-onlyThe confidence values for each class.
DocumentIdstringRead-onlyThe unique document identifier.
DocumentSkillIdstringRead-onlyThe unique identifier of the Document skill applied to the document.
DocumentSkillNamestringRead-onlyThe name of the Document skill applied to the document.
FieldsField[]Read-onlyFields detected on the document. Populated only after a Document skill runs.
IsResultClassConfidentboolRead-onlytrue if the document’s class was determined with confidence.
PagesPage[]Read-onlyThe pages of the document.
ResultClassstringRead-onlyThe class assigned by the Classification skill. Empty if the document wasn’t classified.
RuleErrorsRuleError[]Read-onlyField extraction validation rule errors.
SourceFilesBinaryFile[]Read-onlyDocument source files. Contains the image before preprocessing. Source metadata (including EXIF data) is preserved for JPEGs.
ExportsResultFilesRead-writeDocument export results.
RegistrationParametersRecord<string, Parameter>Read-onlyDictionary of the source file’s registration parameters for the first page — keys are parameter names, values are Parameter objects.
ClassConfidences and IsResultClassConfident are populated only when a Classification skill has been applied.

Methods

ToJsonString

string ToJsonString();
Returns the document data as a JSON-formatted string.

GetField

Field GetField(string fieldName);
Returns the Field object for the named field.

Transaction

The current transaction and access to all of its documents.

Field

Provides access to the field value and its properties.

Page

Properties of a single document page, including image dimensions.

BinaryFile

File data in binary format — typically the pre-preprocessing source image.

Object model

Full JavaScript object reference for Custom activity scripts.

Custom activity

Extend skills with scripted logic and third-party integrations.