Sample 4. Step 3: Blocks
Our FlexiLayout should reliably detect the following blocks (provided they are present on a given image):
- Invoice Number
- Invoice Date
- Delivery Address
- Total Amount
- Invoice Table (Reference, Designation, Unit, Quantity, UnitPrice, and Total columns)
- Company
For convenience, create a list of all the required blocks:
- For the Invoice Number field, create a block of type Text and name it InvoiceNumber.
- For the Invoice Date field, create a block of type Text and name it InvoiceDate.
- For the Delivery Address field, create a block of type Text and name it DeliveryAddress.
- For the Total Amount field, create a block of type Text and name it TotalAmount.
- For the Company field, create a block of type Text and name it Company.
- For the Invoice Table field, create a block of type Table and name it InvoiceTable.
In the block's Properties dialog box, click the Columns tab and add the names of the columns in the following order: Reference, Designation, Unit, Quantity, UnitPrice, Total.
Note.The provided column names and their order will correspond to this block in the FlexiCapture Document Definition.
Note.For more about creating Table blocks, see Sample 3. Step 3.
You have specified the properties of your FlexiLayout and can now create the required elements.
12.04.2024 18:16:02