Modules

html

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

Demo

image

This module exposes a tag to add an image from a tag.

Demo

footnotes

This module exposes a tag to add a footnote to the document

Demo

slides

This module makes it possible to create multiple slides with a loop in a pptx. For example, you could clone slides for each of your products. The whole order of the slides can be declared from the data.

Demo

word-run

This module exposes a tag to insert raw runs (<w:r>) inside the document. This makes it possible to include styled text without having to remove the enclosing paragraph like in the {@rawXml} tag.

Demo

subtemplate

This module adds a tag to include the content of an other docx document (which can be a template itself). This allows you to define subtemplates if your templates share common parts.

Demo

subsection

This module adds a tag to include the headers and footers of an other docx document to create a new subsection

Demo

qrcode

This module makes it possible to replace an image by an other image

Demo

error-location

This module makes it possible to locate errors

Demo

meta

This module makes it possible to operate on the docx document, for example set the document as readonly

Demo

table

This module makes it easy to create a table from a configuration object (header, subheader, ...)

Demo

styling

This module makes it possible to edit style of table cells or paragraphs conditionnaly (background-color, ...).

Demo

Edgar Hipp

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