added stdPr and stdContent to table of contents

This commit is contained in:
Sergio Mendonça
2018-09-19 11:01:07 -03:00
parent baf0f17bd6
commit 7cd8864fb9
6 changed files with 49 additions and 8 deletions

View File

@ -24,5 +24,5 @@ doc.addParagraph(new Paragraph("I'm a another text very nicely written.'"));
const packer = new Packer();
packer.toBuffer(doc).then((buffer) => {
fs.writeFileSync("My Document.docx", buffer);
fs.writeFileSync("tmp/My Document.docx", buffer);
});