docxtemplater is a library to generate docx/pptx documents from a docx/pptx template. It can replace {placeholders} with data and also supports loops and conditions. The templates can be edited by non-programmers, for example your clients.
docxtemplater is very robust because of the many fixed issues over the years, and the high quality of tests and code.
The full documentation of the latest version can be found here.
See CHANGELOG.md for information about how to migrate from older versions.
Functionality can be added with the following paid modules :
{%image}
;{~html}
;{$chart}
;{~html}
;{:users}
;{:include doc}
;{:subsection doc}
;{:include doc}
;{r@wrun}
. This makes it possible to include styled text without having to remove the enclosing paragraph like in the {@rawXml} tag;{:table data}
;{:stylepar style}
;{:footnotes foot}
{?tag}
Docxtemplater is my main job, and has been maintained for over 8 years. Expect to get great support if you buy any modules, and also good support on the open-source version.
Version | Tag | Published |
---|---|---|
3.36.1 | latest | 4d ago |
1.0.0-beta.2 | beta | 8yrs ago |