Technical Examples

Below you will find examples of different features of the Docmosis templating system.

Each example includes:

  • Template (as DOC or ODT)
  • the Data (as XML or JSON)
  • the Output Files in three different formats (PDF / DOC / ODT)

 


Conditional Sections

Conditional Sections

Add or remove content using "IF" statements.   List numbering changes to match the data.

Tables - Part One

Tables - Part One

An introduction to Tables and controlling layout with Table and Paragraph properties.

Expressions - Math

Expressions - Math

How to perform Math and Logic calculations and call Math Functions from within your templates.

Repeating Sections

Repeating Sections

This example shows how to display repeating data including bullet lists and numbered lists.

Expressions - Strings

Expressions - Strings

Examples of the built-in String functions for formatting your data in the generated document.

Alternating Rows

Alternating Rows

An example of a table with one header row and subsequent rows filled with alternating colours.

Images - Part One

Images - Part One

An introduction to adding dynamic images to a document from Base64 encoded image data.

Format - Numbers

Format - Numbers

Using the numFormat function to output: currency, percentages, decimals and more.