You are currently offline, serving cached version

List of Docxtemplater Modules

html

This module allows to include html inside a Word document (.docx). For example to add a formatted field entered by the user in a WYSIWIG editor like CKEditor. It also allows the insertion of tables, nested lists, or formatted text.

Demo

image

This module allows to add an image using the {%image} tag. You can also replace an existing image with this module.

Demo

xlsx

This module allows to do templating on Excel spreadsheets (.xlsx). It allows to do simple replacements and also loops.

Demo

slides

This module allows 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

chart

This module allows to update chart data of an existing chart.

Demo

table

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

Demo

error-location

This module allows to locate errors in your templates, so that finding out why a template produces an error is simple to debug : the module adds a Word comment at each location where there is an error.

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 allows to replace an image by an other image

Demo

word-run

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

Demo

meta

This module allows to operate on the docx document, for example set the document as readonly

Demo

styling

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

Demo

html-pptx

This module allows to include html inside a Powerpoint presentation (.pptx). For example to add a formatted field entered by the user in a WYSIWIG editor like CKEditor. It also allows the insertion of tables, nested lists, or formatted text.

Demo

footnotes

This module allows to add a footnote to the document.

Demo

paragraph-placeholder

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

Demo