Technical Examples

Below you will find examples of different features of the Docmosis document generation 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.

Barcodes

Barcodes

This example shows how to dynamically insert and configure barcodes into documents.

Expressions - Math

Expressions - Math

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

Hyperlinks

Hyperlinks

Examples of using static and dynamic hyperlinks to other websites and email addresses.

Repeating Sections

Repeating Sections

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

Format - Numbers

Format - Numbers

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

Conditional Rows

Conditional Rows

Add or remove table rows using conditional statements and repeating rows.

Format - Dates

Format - Dates

Examples of using the formatDate function to decode and display Dates and Times.

Images - Part One

Images - Part One

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

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.

Else and Else-If

Else and Else-If

Examples of providing alternative content to "IF" statements with additional expressions.