What is docxtemplater?
The docxtemplater library supports several features related to DOCX file creation and handling such as add images, insert formatted text in a Word document, insert headers/footers, image replacement with any existing properties, create tables, add watermark text, update page margins, insert footnotes to a document and much more.
At A Glance
An overview of docxtemplater features.
- Generate DOCX
- Create tables
- Insert image
- Add Paragraphs
- Text alignment
- Add footnote
- add Header & Footer
- Bookmarks support
- Add hyperlinks
- Add text
docxtemplater only requires Java run-time.
How to Install docxtemplater?
The recommend and easiest way to install docxtemplater is via npm. Please use the following command for a smooth installation.
Install docxtemplater via npm
npm install docxtemplater pizzip
The docxtemplater library helps in creating DOCX documents in a Node.js app as well as in the browser with ease. It also allows to modify the existing DOCX documents to insert tables, images, text, paragraphs and more.
Insert & Manage Tables in Word Documents
Add Footnote to a Word Documents
The free docxtemplater library includes support for adding footnotes to a DOCX Word document. The library gives full control for the customization of the footnotes. You can add numbers in superscript and apply different styles to the content of the footnote with ease.
Add and Modify Images in DOCX
The open source docxtemplater library gives software programmers the power to create insert images inside a word document. The library allows setting the image width and height, align images, add a caption for the images, use angular expressions to set image sizes, and so on. You can also retrieve image data from any data source such as base64 data, filesystem, URL and Amazon S3 stored image. One great features of the library is that you can avoid the pictures bigger than their container.