1
Create the Paragraph element
In the
InvoiceHeader.grAddress element, create an element of type Paragraph and name it DeliveryAddress.2
Set the search constraints
Click the Relations tab. The DeliveryAddress field appears only above the kwInvoiceNumber name, only to the left of the wgAddressRight white gap, and only to the right of the start of the kwDeliveryAddress name (with a small offset), so set these constraints:The Group element
- Above the kwInvoiceNumber element, Offset = 0
- Left of the kwInvoiceNumber element, Offset = 0
- Right of the kwDeliveryAddress element, Offset = -50, Reference boundary = Left
Offset values are selected by trial and error.
InvoiceHeader.grAddress already restricts the DeliveryAddress field to below the keywords of the kwDeliveryAddress name, so you do not need to repeat that constraint here.3
Add the search constraint
Click the Advanced tab. The Delivery Address field is optional, but when it occurs it always has a name. In the Advanced pre-search relations field, set this additional search constraint: look for the object only if the kwDeliveryAddress element was detected. In the FlexiLayout language:
4
Verify the match
Match the FlexiLayout with the test images and confirm that FlexiLayout Studio detects the element on every image where it applies.
5
Set the block source element
To describe the location of the DeliveryAddress block, select Source element, click
, and select the DeliveryAddress element as the source element.
