CopyLabelValuePairs

Copies all found pairs of labels and values to new fields in the DCO object.

Syntax

bool CopyLabelValuePairs ()

Parameters

None.

Returns

True.

Level

Page level.

Details

After calling FindLabelValuePairs, this action creates fields in the batch hierarchy for each pair that was found. The field ID is the identified label combined with a unique number (for example: Last Name-1). The field type is the block type (for example: block or title). The font and color attributes are saved in CSS format to the style variable. Use CopyLabelValuePairs during development to see if the FindLabelValuePairs and FindLabelValuePair actions can be used to find the fields to be extracted. You can also use this action to create an application where the unwanted fields will be deleted.

CopyLabelValuePairs requires a previously created layout file (for example: tm000001_layout.xml) where text is grouped into blocks. See DocumentAnalytics actions for information on the layout XML file.

Example

Recognize()

FindLabelValuePairs()

CopyLabelValuePairs()