This REST API provides the functionality to extract data from documents. This method parses document content by a user-generated template.
The template can be provided as an object or storage path. For protected documents, it is also required to provide a password.
The table below contains the full list of properties that can be specified when parsing documents by a template.
Name
Description
Comment
FileInfo.FilePath
The path of the document, located in the storage.
Required.
FileInfo.StorageName
Storage name
Could be omitted for default storage.
FileInfo.Password
The password to open file
It should be specified only for password-protected documents.
ContainerItemInfo.RelativePath
The relative path of the container.
Should be specified only for container files like ZIP archives, emails or PDF portfolios.
ContainerItemInfo.Password
Password for processing password-protected container items.
It should be specified only for password-protected container items.
TemplatePath
The path of the file, located in the storage, which contains a user-generated template to parse data. It is used when the template parameter is not provided.
The template must be provided by this field or by Template.
Template
User-generated template object to extract metadata from the document.
Template must be provided by this field or by TemplatePath.
Template
Name
Description
Comment
Template.Fields
Template fields.
Required if Template. Tables are not provided.
Field.FieldName
A unique template field name.
Required.
Field.PageIndex
The page index.
An integer value that represents the index of the page where the template item is located; null if the template item is located on any page.
FieldPosition. FieldPositionType
Provides a template field position.
Possible values are: “Fixed”, “Linked”, “Regex”. Required.