Skip to main content
Use the handler of this event to control which sections or Document Definitions are matched on each subsequent page, and to set the matching order. With this script you can accelerate matching the Document Definition if sections to be matched are known in advance. For example:
  • it is known that only the first page of the batch may have the Contents Document Definition.
  • it is known that the given page belongs to a particular section type.
  • the order of sections in the documents is known.
The script allows you to disable recognition of document after a Document Definition is matched. For this, set the IMatchingInfo.NeedRecognition parameter to false. It can be useful if field values are supposed to be entered manually. It is also possible to mark the page as an annex page which does not need recognition. For this, it is necessary to specify an empty list of sections and set the IMatchingInfo.ForceMatch parameter to true.

When it is launched

The script is launched prior to matching sections on each subsequent page.

Parameters

* The internal field requires loading the object into memory. You can also specify the Document Definitions and sections to be matched by using named registration parameters. For more information, see Registration Parameters.