Progress on embeddding image

This commit is contained in:
Dolan
2018-01-16 00:43:00 +00:00
parent 392db1cd11
commit f7c2072cff
12 changed files with 76 additions and 13 deletions

View File

@ -2,8 +2,10 @@ const docx = require('../build');
var doc = new docx.File();
const image = doc.createImage("./demo/penguins.jpg");
var paragraph = new docx.Paragraph("Hello World");
doc.addParagraph(paragraph);
const image = doc.createImage("./demo/image1.jpeg");
var exporter = new docx.LocalPacker(doc);
exporter.pack('My Document');