Search results
All Docmosis Cloud code samples have been updated to work with the latest version of the Cloud service. Change the Product/Version filter on the top right of the…
This example shows how to generate a PDF from a DOCX template using C#. It calls the Docmosis REST API, sending the render instructions and data as JSON,…
This example shows how to generate a PDF from a DOCX template using C#. It calls the Docmosis REST API, sending the render instructions and data as XML,…
Docmosis template tutorials are a series of short lessons explaining key features when creating templates. These tutorials are designed as an entry point for learning the essential template…
A field is a placeholder within a template that controls the insertion or removal of content from the generated document. Creating fields A field is created just…
An optional paragraph field is just like a normal field, except, if there is no data for that field, the entire paragraph containing the field is removed.…
Comments can be used to mark content within a template that should be ignored and therefore won’t appear in the generated document. Comments are useful for: Embedding…
Creating high-quality templates is essential for generating well-structured documents. This tutorial explores the use of tables, paragraph properties and other template editor features to ensure that, as…
Conditional sections are similar to an "IF" statement. They are created using the <<cs_ prefix, and are used to mark content that should be included or removed…
Conditional Sections covered how to add or remove content from the final document. When a conditional section returns false and content is removed, there is sometimes a…
Within a Conditional Section it is possible to include an Else statement to allow alternative content to be provided in case where an expression is false. Else-If…
This example introduces the notation used to perform simple logic calculations in the templates. It explores how to call logic and boolean operators such as AND/OR within…
This example introduces the notation used to perform simple math calculations in the templates. It explains how to call math functions and format the results that are…
Depending on the particular software application you are using, it might not be possible to change your data before sending it to Docmosis. Docmosis has a range…
Repeating data, from an array of data, can be displayed in many ways. This example contains: each item on a new line, each item on the same…
This example demonstrates the use of the Docmosis size()function, and the built-in $size variable. Using array size When working with groups or sets of data, it may…
Items in an array can be displayed as a comma separated string in a sentence. The examples below describe methods used to cater for the different possibilities…
Docmosis allows you to control how numbers are displayed in the finished document. For example: the raw data may have numbers like: 1234.5. Using the built-in function…
Docmosis allows you to control how dates and times are displayed in the finished document. For example: the raw data may have a date like: 21-03-16. Using…
If a total is not provided as part of the data, it is possible to calculate a subtotal or a total from the data and display the…
