Skip to main content
You will notice that the Total column on all the images is to the right of the Unit Price column, so you can search for the Total column relative to the Unit Price column.

Create the kwTotal element

1

Create the Static Text element

In the TableHeader element, create a Static Text element and name it kwTotal.
2

Enter the search text

Click the Static Text tab. In the Search text field, type TotalChf|Total|Extension|AMOUNT|PRODUCTTOTAL.
3

Add position relations

To place this name on the same level as the Designation name, click the Relations tab and specify the additional constraints described in Step 7.2.
4

Constrain to the X coordinate

On the Relations tab, specify this condition: search for an element closest to the X coordinate with value 6000.
Screenshot of the Relations tab of the kwTotal Static Text element properties in ABBYY FlexiLayout Studio, showing the constraint to search for an element closest to the X coordinate with a value of 6000.
5

Add a pre-search condition

Because the name of the Total column is to the right of the kwUnitPrice column name (when it is present on the image), click the Advanced tab and specify this condition in Advanced pre-search relations: if the kwUnitPrice element is detected, search for the image object to the right of it. In the FlexiLayout language:
6

Skip the search when Designation is missing

To optimize the search, do not search for the name if the Designation name is not detected, as described in Step 7.2.
7

Match the FlexiLayout

Match the FlexiLayout to confirm that the element is detected on the first page of the document.