Powerful Word, PowerPoint and Excel generation
open coreMIT OR GPL-3.0self-hostablefree
docxtemplater is a JavaScript library that generates DOCX and PPTX documents from templates made in Word or PowerPoint, replacing {tags} with JSON data and supporting loops and conditions, so non-programmers can edit the templates. It runs in Node.js and in the browser. The open-source core is MIT (or GPLv3) and covers tag replacement, conditions, loops and custom delimiters; paid modules add images, HTML content, tables, charts, Excel (XLSX) templating, dynamic slides, subtemplates, footnotes, QR codes, ODT output and more.
Problems it solves
- fill a Word document with customer data from JSON in my Node app, keeping all the original formatting
- our ops team edits contract wording in Word and I don't want to touch code every time they change a sentence
- repeat a table row for every line item in an order inside a .docx
- show or hide whole paragraphs in a Word template depending on the data
- generate a .docx entirely in the browser and let the user download it
- insert a different photo or signature image into each generated Word document
- produce PowerPoint decks from data, one slide per record
- fill an Excel template with rows of data and keep its styling
- put rich text from our HTML editor into a generated Word file
- mail merge in JavaScript without Microsoft Office installed on the server
- template errors are hard to find, I want to know which placeholder in the document is broken
Features
- {tag} replacement in DOCX and PPTX (free core)
- Loops and conditions (free core)
- Custom delimiters (free core)
- Paid modules: Image, HTML, Table, Chart, Styling
- Paid modules: XLSX templating, Slides, Pptx-sub, Html-pptx, Html-xlsx
- Paid modules: Subtemplate, Subsection, Footnotes, Paragraph-placeholder, Word-run, Meta
- Paid modules: Error-location (errors as Word comments), QR code, ODT
Ways to run it
Free (open source core)
free
Only in this edition
- {tag} replacement, conditions, loops, custom delimiters
Not included
- paid modules (images, HTML, tables, charts, etc.)
- email support
You arrange
- Node.js or a browser bundle
One module and PRO
One module 500€/year; PRO (up to 4 modules) 1,250€/year
Only in this edition
- paid modules of your choice (images, HTML, tables, charts and others): 1 with One module, up to 4 with PRO
- email support (48h average)
Not included
- the other modules
- the Docker image with an HTTP API
- custom licence terms
You arrange
- up to 5 instances per licence
Enterprise and Premium
Enterprise 3,000€/year; Premium 9,000€/year
Only in this edition
- all modules
- a preconfigured Docker image with an HTTP API and SDKs for 12 languages
- priority support (Premium adds phone and chat, a monthly call and 4 days of development or template work, up to 25 instances)
- custom licence terms possible
You arrange
- a server or VM to run the Docker image, 2 GB RAM or more per instance
Capabilities
| Takes plugins | plan not known |
|---|---|
| Has official SDKs | plan not known |
Alternatives
The same job
These do what docxtemplater does.
- docxtpl Use a docx as a jinja2 template
- DocSpring Fill PDF forms, generate PDFs and Word documents, and collect e-signatures with one API.
- Carbone Generates PDF, DOCX and other documents from JSON data and Office templates
- Sablon Ruby document template processor based on docx templates and Mail Merge fields
- Adobe PDF Services API Modern cloud-based capabilities for PDF manipulation.
- Docmosis API-first, template-based document generation