Adding zones – Kofax DOKuStar Validation User Manual

Page 28

Advertising
background image

DOKuStar Validation Programming Manual

Page

24

When the code is run again, you will get the following:

The images are displayed as sub-nodes of the subdocuments. When you click on the subdocument node, always the
first image will be displayed. Note that the

Letter

document itself has no images assigned to it, as we didn’t link

any images to this document! It is up to you: If you also want the list of image nodes linked to the

Letter

node,

add them to

DataSource

collection of the

Letter

node.

Adding Zones

If a field contents was read by a recognition engine (like DOKuStar Extraction), this engine usually delivers a zone
where the field was found. This zone can be displayed in DOKuStarValidation.

To add a zone to a field, you create an

ImageSourceInfo

object, linked to the field. This object has a reference to

an

ImageDataSource

object (the image on which the field resides) and a

Zone

object, that contains the

coordinates. Coordinates are measured in 1/10 mm, measured from the top left corner of the image.

In our example, we now add a zone to the

TotalAmount

field:

Advertising