Skip to main content
This sample builds a FlexiLayout for a simple invoice. To keep the example simple, it uses a one-page document. Unlike the previous samples, this invoice includes a table. This sample guides you through all the steps of FlexiLayout creation and teaches you tricks for describing the position of objects. Most importantly, it teaches you how to detect image objects that correspond to Table elements. This sample refers to Sample 1 and Sample 2, which describe the creation of FlexiLayouts with blocks and elements of various types (except tables). Some of the basic operations are described there in greater detail. The FlexiLayout Studio project with the test images and a ready-made FlexiLayout is located in %public%\ABBYY\FlexiCapture\12.0\Samples\FLS\English\Invoice One-Page. The sample document is a simple but typical invoice, and some of its fields can be absent.
Screenshot of the sample one-page invoice document used in Sample 3 of ABBYY FlexiLayout Studio.
The purpose of a FlexiLayout for this document is to ensure reliable detection of the following fields on all the test images (provided they occur on a document):
  • Invoice Number
  • Invoice Date
  • Delivery Address
  • Total Quantity
  • Total Amount
  • Country
  • Invoice Table (only the following columns: Reference, Designation, Quantity, Unit Price, Total)
Screenshot of the sample invoice with the target capture fields marked, including Invoice Number, Invoice Date, Delivery Address, Total Quantity, Total Amount, Country, and the Invoice Table columns, in ABBYY FlexiLayout Studio.