Document template is set by Template class. It contains template items - fields and tables. Each item has the unique (in the template bounds) name and optional page index - value that represents the index of the page where the template item is located; null if the template item is located on any page.
Template fields The template field is set by TemplateField class with the following constructor:
TemplateField(TemplatePosition position, String name, Integer pageIndex) Parameter Description position Defines the way how to find the field on a page....following way: // Create a regex template field with "InvoiceNumber"...“value” is used: // Create a regex template field with "InvoiceNumber"...