Generate PDF/DOCX Documents from Templates with Docmosis

Content Type: Module
Categories: Connectors


Generating PDF or DOCX documents is often a critical feature of business software applications. Laying out the documents and styling them to achieve a professional appearance can be challenging, especially if you have data that runs over multiple pages. This module allows you to add template based document generation to your Mendix app using Docmosis:

  • Create templates, using the well-known WYSIWYG editors Microsoft Word or LibreOffice Writer.
  • Add simple plain-text placeholders for all dynamic content.
  • Insert: text/images/tables; conditionally add/remove content; loop over repeating data; perform calculations; format dates/numbers and more.
  • Leverage these richly featured editors to control: page size/margins; header/footers; layout tables and images; control numbered/bullet lists; add page numbering or table of contents.
  • Merge data from your Mendix application with the template to generate your document.
  • Output the final documents as PDF, DOCX, ODT, TXT.



Mendix-Docmosis Integration


This module simplifies generating documents from your Mendix app by using the Docmosis Cloud document generation service.

You will need a Docmosis Cloud Account to use this module.

Processing Locations

You have complete control over where your templates are stored and where processing occurs. Choose from processing locations in the USA, EU and Asia/Pacific regions to ensure low latency and geo-bound processing.

Security and Reliability

We understand that Security and Reliability are essential. Below is a summary of our Cloud Security Measures:

  • Load balanced, high-performance, redundant, geographically distributed and monitored 24/7.
  • Over 99.99% uptime consistently for over 7 years.
  • All communication with the Docmosis Cloud is SSL encrypted and templates and other uploaded content are stored encrypted at rest.

We generate a test document every 60 seconds… view the live Status Page and Historical Uptime Statistics.

The module

This Mendix module simplifies generating documents from your app using Docmosis. It is a wrapper around the Docmosis Cloud service.

The module handles all web service complexity so you don't have to be an expert on that and you can focus on generating documents.

In the GitHub repository you will find a project with some showcases and feel free to copy it to your own project or use it as inspiration. The author of the module uses it to test the module.

The module depends on module Community Commons.

Where to go next?

How to use the module

What is in the example app


The module is published with an Apache v2 open source license. We will do our best to support your use and integration of this module.

Any questions, issues and requests for additional functionality can be posted to the GitHub issue tracker or can be emailed to Docmosis Support.


Version: 4.0.0
Framework Version: 9.24.0
Release Notes: Support for Docmosis Cloud DWS4. This version does not support DWS3, use a 2.x version of the module.
Version: 2.1.0
Framework Version: 9.24.0
Release Notes: Migrated to Mx 9.24.0 to make it Mx 10 compatible
Version: 2.0.0
Framework Version: 9.12.0
Release Notes: Migrated to Mx 9.12.0
Version: 1.0.0
Framework Version: 8.12.5
Release Notes: Render documents via Docmosis Cloud DWS3