Skip to main content
When you process semi-structured documents in ABBYY FlexiCapture, you often need to exclude documents that do not belong to the current type. One way to identify a document is to mark at least one element as required. FlexiLayout Studio must detect a required element on every document of a given type. Otherwise, it cannot match the document to its FlexiLayout. The document heading, HALLOWEEN REGISTRATION FORM, makes a good identifier element. It contains distinct text that the OCR engine reads easily. You can also specify an identifier element, or a set of elements, in a predefined compound Header element, which this tutorial does not describe. Use the document heading solely to identify the document as belonging to this type. In the FlexiLayout, specify the document heading as a Static Text element.
1

Open the FlexiLayout tab

Click the FlexiLayout tab in the FlexiLayout Studio main window.
2

Select the SearchElements node

In the FlexiLayout tree, select SearchElements.
3

Add a Static Text element

Select FlexiLayout → Add element → Static Text, or right-click the element and select New → Static Text on the shortcut menu.In the Name field, type a name such as IDHeader.
4

Make the element required

On the General tab, select Required element so the document heading is a required element.
Screenshot of the General tab of the Static Text element properties in ABBYY FlexiLayout Studio showing the element named IDHeader with the Required element option selected.
5

Open the Static Text tab

Click the Static Text tab.
Screenshot of the Static Text tab of the IDHeader element properties in ABBYY FlexiLayout Studio showing the Search text field and the Max error percentage setting.
6

Enter the search text

In the Search text field, type the text to find: HALLOWEEN REGISTRATION FORM.Judging by the first image in the batch, the document heading fits on one line. You can type the heading without spaces to speed up the search for single-line static text.
7

Set the maximum error percentage

Set the maximum number of errors allowed in the found text, either as a percentage or as a number. Set Max error percentage to 20, which allows 5 errors for the 25 characters of the document heading.You can find the optimal percentage of allowed errors only by trial and error.