Skip to content
Dolan edited this page Jan 23, 2018 · 3 revisions

Adding images is very simple

Simply call the createImage method:

const image = doc.createImage([PATH_TO_YOUR_IMAGE]);

docx supports jpeg, jpg, bmp and png

Check demo5.js for an example

Clone this wiki locally