Documentation and demo for module html

Summary

This module exposes a tag to include html. The HTML is converted to Native Open XML by the module. This allows you to add a formatted field entered by the user

Order now

Demo

Input Output
Data Code
{
    "html": `<h1>docxtemplater</h1>

<p><strong>docxtemplater</strong> is a library to generate docx/pptx
documents from a docx/pptx template. It can replace {placeholders}
with data and also supports loops and conditions. The templates can be
edited by non-programmers, eg for example your clients.</p>

<p>Installation: <code>npm install docxtemplater</code></p>

<p>If you download the JS from there, you should use <code>new
Docxgen()</code> instead of <code>new Docxtemplater()</code>, because
I do not want to bring in a breaking change on a minor version change
in the docxtemplater-build repository.</p>

<p>If you download the JS from there, you should use <code>new
Docxgen()</code> instead of <code>new Docxtemplater()</code>, because
I do not want to bring in a breaking change on a minor version change
in the docxtemplater-build repository.</p>

<p>I recommend you to use the npm scripts I wrote (which can be found
    in the package.json).</p>

<code> npm install && npm run compile </code>

<p>Your version of docxtemplater will be in /build (minified and non
    minified options) and already include all dependencies</p>

<p>Create the following html</p>

<h2>Similar libraries</h2>

<p>They are a few similar libraries that work with docx, here’s a list
of those I know a bit about:</p>

<h1>Modules</h1>

<p>Functionality can be added with modules. They is yet no doc for the
modules because it is not completely mature yet, but you can open an
issue if you have any question about it.</p>

<p>Here is the list of existing modules:</p>

<h1>Professional Support</h1>

<p>I can give your company support for installing, extending,
answering support questions, or maintainning your app that runs
docxtemplater. You can find my email address on my </p>
`}
const doc = new Docxtemplater();
const inputZip = new JSZip(docX);
doc.loadZip(inputZip)
	.setData(data);
const htmlModule = new HtmlModule({});
doc.attachModule(htmlModule);
const output = doc.render().getZip();

Order module html

This module is available right now, you can contact us and get the source code of the module in less than a day

To order this module, send us an email at : contact@javascript-ninja.fr with the subject "Order module html"

If you are in hurry, you can send us the following information so that we can setup a license quickly :

  • Name of the legal representative of the company
  • Company name
  • Street Address of company
  • Town of company
  • Country of company
  • VAT of company or official tax identification number

Support

Buying a module gives you support for the module for a duration of 1 year. You get free updates of the bought module during the support period, and you can contact us via email if you encounter any problems with the bought module. We will make sure that your questions are answered promptly.

Edgar Hipp

I'm the creator of docxtemplater. I work on making docxtemplater great since 2013.