Creating templates

You can create new documents based on templates. The application can handle three types of template documents:

  • PDF
  • 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's 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 basics, but you can learn more at FreeMarker Manual.

  • Creating LibreOffice templates ? Produces ODT files by substituting FreeMarker ${...} placeholders (plain text or JODReports Input fields) via the JODReports library. Native LibreOffice Writer form controls (Form Controls toolbar) are not supported.
  • 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.
Table of contents [ Hide Show ]