Add dynamic HTML
How to add dynamic HTML to your template.
For this tutorial is recommended to have followed the Getting started tutorial.
We're gonna start with an empty document and the Docxmerge Add-in opened.
We're going to create a Rich Text Content Control, you can check this page if you don't know how.
It's important that the Title ends with HTML, in this case the title is example_HTML
We can then create the template in the Add-In.
The field example_HTML in the JSON will be encoded in Base64.
The default value is:
<html> <body> <p> This is html</p> </body> </html>
When we click Print, we will get a pdf like this:
To integrate the template in your application, you can check the Api Integration document.