You are currently offline, serving cached version

List of Docxtemplater 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, or add more complex data by writing simple HTML (Open XML is much more complex to work with then HTML).

Demo

image

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

Demo

xlsx

This module makes it possible to do templating on xlsx. It allows to do simple replacements and also loops.

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

table

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

Demo

error-location

This module makes it possible to locate errors

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

pptx-sub

This module adds a tag to include the content of an other pptx 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

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

meta

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

Demo

styling

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

Demo

html-pptx

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

Demo

paragraph-placeholder

This module makes it possible to add a placeholder to a paragraph and automatically drop the paragraph if the placeholder evaluates to null or undefined

Demo

footnotes

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

Demo

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