# Working with templates Document template is set by [Template](https://reference.groupdocs.com/java/parser/com.groupdocs.parser.templates/Template) class. It contains template items - fields and t......following way: ```java // Create a regex template field with "InvoiceNumber"...is used: ```java // Create a regex template field with "InvoiceNumber"...