Examples

Below you will find Business Examples and Technical Examples of using Docmosis for document generation.

Each example includes:

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

 

TRY: comparing a Template and an Output File side-by-side.


Invoice

Invoice

A monthly invoice showing nicely formatted tables with rows that expand to match the data.

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.

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.

Stepping Data

Stepping Data

These examples show how to display repeating data in “steps” across or down a page.

Letter

Letter

A standard business letter with simple placeholders, static images and conditional sections.

Repayment Schedule

Repayment Schedule

How to fill a table with data, that runs over the page and have header rows added automatically.

Tables - Part One

Tables - Part One

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

Conditional Rows

Conditional Rows

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

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.

Page Size & Orientation

Page Size & Orientation

Examples showing different page sizes and different orientations in the same document.

Conditional Sections

Conditional Sections

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

Images - Part One

Images - Part One

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

Contract

Contract

A contract with headers and footers. Conditional sections are used to add or remove unwanted clauses.

Barcodes

Barcodes

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

Format - Dates

Format - Dates

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

Master/Sub Templates

Master/Sub Templates

Examples of how to merge one template in to another template, directly or as determined by data.