Skip to main content
Before you create any elements, decide the following:
  • Is there a pattern in how the fields are arranged on the images?
  • Which elements can serve as reference elements for field detection?
  • What element search order works best? At each new step, you can refer only to previously described elements.
Analyze the available images. The central part of every image contains a table.
In FlexiLayout Studio, a table is an image object made up of fragments that consist of rows and columns visually separated by separator lines or by white gaps. For more information, see Work with tables.
Above the table is a group of fields you can name InvoiceHeader: Invoice Number, Invoice Date, and Delivery Address. The Invoice Number field occurs on all the images and can serve as an identifier field, while Invoice Date and Delivery Address are optional. Below the table is a group of fields you can name Footer: TotalQuantity, TotalAmount, and Country. These fields also do not occur on all the images.

Plan the search for the upper fields

Start with the fields in the upper part of the document. Create a logical Group element named InvoiceHeader that unites all the elements used to find the Invoice Number, Invoice Date, and Delivery Address fields. These three fields are always in the upper left corner, and their order is always the same: Delivery Address, followed by Invoice Number, followed by Invoice Date (when they occur on the image). Look for them in that order. To find the field-name keywords, use Static Text elements. The InvoiceHeader element must contain these name elements: Search for the Invoice Number and Invoice Date fields in the same row as their names, to the right of the names. In the InvoiceHeader element, create these field elements: In the InvoiceHeader.grDate element, create: For more information about finding dates on poor-quality images, see Date search after high or low-quality recognition.

Plan the search for the Delivery Address field

The Delivery Address field has multiple lines, so use a Paragraph element to detect it. Before creating that element, limit the search area as much as possible. Use a White Gap element for the right boundary of the search area. Group all the elements that describe the location of the Delivery Address field into a Group element. In the InvoiceHeader element, create a Group element named grAddress. For more information, see Step 10. In the grAddress element, create: