Add footnote support to API

This commit is contained in:
Dolan
2018-06-25 19:49:46 +01:00
parent 369ec9c30b
commit 99290d646e
6 changed files with 37 additions and 12 deletions

14
demo/demo16.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!');