> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sample 4. Step 5: Document header and InvoiceHeader group

> Build the InvoiceHeader group in FlexiLayout Studio with Static Text, Character String, Date, and Paragraph elements to identify the invoice's first page.

In the InvoiceHeader group, describe the elements that will help identify the first page of the document.

1. To find the keywords contained in the names of the **Invoice Number**, **Delivery Address**, and **Invoice Date** fields, create the following elements of type Static Text:
   * **kwInvoiceNumber** element. For detailed instructions, see [Step 5.1](/flexi-capture/fls/tutorial4/4step5-1).
   * **kwDeliveryAddress** element. For detailed instructions, see [Step 5.2](/flexi-capture/fls/tutorial4/4step5-2).
   * **kwInvoiceDate** element. For detailed instructions, see [Step 5.3](/flexi-capture/fls/tutorial4/4step5-3).

2. Search for the **Invoice Number** and **Invoice Date** fields to the right of and below the corresponding name, using the following elements:

   * **InvoiceNumber** of type Character String. For detailed instructions, see [Step 5.4](/flexi-capture/fls/tutorial4/4step5-4).
   * **InvoiceDate** of the Date type (for good quality images) and **InvoiceDateAsString** of type Character String (if the search for the **InvoiceDate** element produced no results) merged into a **grDate** element of type Group. For detailed instructions, see [Step 5.5](/flexi-capture/fls/tutorial4/4step5-5).

   <Note>
     For more information about searching for dates on poor quality images, see [Tips and Tricks](/flexi-capture/fls/tips-tricks/general).
   </Note>

3. To find the **Delivery Address** field, which has multiple lines, use a **DeliveryAddress** of type Paragraph. For detailed instructions, see [Step 5.6](/flexi-capture/fls/tutorial4/4step5-6). The search area should be specified as strictly as possible.\
   Use a **wgAddressAbove** element of the White Gap type to restrict the search area from below. For detailed instructions, see [Step 5.6](/flexi-capture/fls/tutorial4/4step5-6).\
   Next, group all these elements that serve to detect the **Delivery Address** field into one group named **grAddress**.
