English (English)

Sample 3. Step 19: Creating a InvertedHeader element

Though we do not need the data from the Sales column, we have to detect its name in order to restrict the search area for the right boundary of the table.

To create the kwSales element:

  1. In the TableHeader element, create an element of type Static Text and name it kwSales.
  2. Click the Static Text tab.
  3. In the Search text field, specify the value for the sought text: “Sales”.
  4. Click the Advanced tab.
  5. Since the name of the Sales column is located to the right of the name of the Total column (if the latter occurs on the document), set the following additional search constraint in the Advanced pre-search relations field:If the kwTotal element has been detected, look for the kwSales element to the right of it.In the FlexiLayout language:
    If Not (TableHeader.kwTotal.IsNull) Then
    RightOf: TableHeader.kwTotal, 0 * dot;
  6. Try matching the FlexiLayout with the test images and make sure that the program successfully detects the element on all the images.

12.04.2024 18:16:02

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.