diff --git a/demo/demo17.js b/demo/demo17.js new file mode 100644 index 0000000000..ea6308eb46 --- /dev/null +++ b/demo/demo17.js @@ -0,0 +1,14 @@ +const docx = require('../build'); + +var doc = new docx.Document(); + +var paragraph = new docx.Paragraph("Hello World").referenceFootnote(1); + +doc.addParagraph(paragraph); + +doc.createFootnote(new docx.Paragraph("Test")); + +var exporter = new docx.LocalPacker(doc); +exporter.pack('My Document'); + +console.log('Document created successfully at project root!');