Creating templates
You can create new documents based on templates. The application can handle three types of template documents:
- LibreOffice
- Text (this includes other text-based formats like HTML, for example).
In order to generate the final document from the template, we need to make an association with Metadata. The final document will be assigned the corresponding Metadata using the user input values, so you can use them for future searches.
The template syntax is used by the FreeMarker Template Engine. This engine can be used for everything from simple variable substitution to loops and other control structures.
In the samples we use only the basic ones, but you can learn more at FreeMarker Manual.
- Creating LibreOffice templates ? Produces ODT files using LibreOffice Writer form fields and the JODReports library.
- Creating PDF templates ? Produces PDF files using PDF form fields (created with Acrobat Pro or Master PDF Editor).
- Creating Text templates ? Produces HTML or PDF files from plain text/HTML source templates.