-
In the
InvoiceHeader.grAddresselement, create an element of type Paragraph and name it DeliveryAddress. - Click the Relations tab.
-
Since the DeliveryAddress field can only occur above the name kwInvoiceNumber, only to the left of the wgAddressRight white gap, and only to the right of the beginning of the name kwDeliveryAddress (with small offset), set the following search constraints:
- Above the element kwInvoiceNumber, Offset = 0.
- Left of the element kwInvoiceNumber, Offset = 0.
- Right of the element kwDeliveryAddress, Offset = -50, Reference boundary = Left
Offset values are selected by trial and error. -
Since the Group element
InvoiceHeader.grAddressalready specifies that the DeliveryAddress field can only be located below the keywords of the name kwDeliveryAddress, you do not need to duplicate this constraint here. - Click the Advanced tab.
-
Since the Delivery Address field is optional on the images but whenever it occurs it has a name, set the following additional search constraint in the Advanced pre-search relations field: Look for the object only if the kwDeliveryAddress element has been detected. In the FlexiLayout language:
If InvoiceHeader.kwDeliveryAddress.IsNull Then DontFind; - Try matching the FlexiLayout with the test images and make sure that the program successfully detects the element on all the images where applicable.
-
To describe the location of the DeliveryAddress block, select the Source element option, and then click
and select the DeliveryAddress element as the source element.
Sample 3
Sample 3. Step 12: Describing the Delivery Address field with a DeliveryAddress element
Capture the multi-line Delivery Address field with a DeliveryAddress Paragraph element, applying relations to nearby keywords and the white gap.
To create the DeliveryAddress element:
Sample 3. Step 11: Detecting the right border of the Delivery Address field with a wgAddressRight element
Previous
Sample 3. Step 13: Further analysis of the images
Next
