Supercharged docx/pptx generation

Want to generate docx or pptx from inside your application ? By using docxtemplater, you will be able to customize your generated document using Word itself.

Benefits

Easy to use

You don't need technical skills to edit a Word template, so it is ideal for your clients to customize their template.

Very robust

For each module, we write a full suite of tests with real docx documents to ensure that the generated documents are correct.

Support included

If you buy a license for docxtemplater pro, you get support per email to help you for any problems you may have.

Why use docxtemplater?

Super easy to install and set up

In less than five minutes you can install docxtemplater, create your first template and generate some docx from javascript objects or JSON

Works everywhere

docxtemplater works with nodejs version 0.10+ up to version 8, and in modern browsers (Chrome,Firefox,Safari,IE9+). It also has a command line.

Full Documentation

docxtemplater has extensive documentation available at https://docxtemplater.readthedocs.io/en/latest/.

Features many different types of tags

With docxtemplater, you can insert text, but also have loops and conditions : {#tag} {/tag}, the possibility to add custom xml {@xml} , loop over table rows, or insert images {%image}

Open for extension

docxtemplater is open for extension with its module system (image replacing is a module). You can also define a custom parser to process the tags the way you want.

Fully tested

docxtemplater has automated tests that run locally and at each git push, covering a huge amount of possible inputs and verifying that the output is correct.

Plans

Open source

Pro

Entreprise

Audience Hobbyists Startups, small business Medium or Large companies
Variables
Conditions
Loops
html v3.5.4
Updated in November 2017
image v3.1.4
Updated in August 2017
footnotes v3.0.1
Updated in October 2017
slides v3.1.2
Updated in June 2017
word-run v3.0.0
Updated in April 2017
subtemplate v3.1.6
Updated in November 2017
qrcode v3.0.4
Updated in October 2017
error-location v3.0.0
Updated in July 2017
meta v3.0.0
Updated in November 2017
table v3.1.1
Updated in November 2017
Docker Image with HTTP API
Dedicated Support None Email Email
License MIT Commercial / no custom terms Same as PRO / custom terms possible
Pricing Free €950 / year €2450 / year
Purchasing n/a Credit Card Credit Card
Get Started  
Buy pro Buy enterprise

All sales come with a two week, 100% money back guarantee.
Here is a more detailed list of all modules
You can also buy a license for one single module by following this link : Buy single module
If you would like to embed docxtemplater-pro in your virtual server or appliance, please contact us.

Trusted by more than 15,000 developpers

Thanks for your time and effort, I really appreciate it :)

@cades hong-jen kao

Full-stack Web Developer

First thanks for this lib. Using docx as a template is an awesome smart thing to do, great you made this stuff!

@ssured Sjoerd de Jong

Owner - Racido BV

Once again: This is an awesome module!

Allan Ebdrup

CTO at Debitoor

Edgar Hipp

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