Footnotes demo

This commit is contained in:
Dolan
2018-06-27 23:36:04 +01:00
parent b9e702086a
commit 802e461792

14
demo/demo17.js Normal file
View File

@ -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!');