Fix demo 27

This commit is contained in:
Dolan
2018-09-17 21:18:27 +01:00
parent 1c376abeb6
commit a95366e54e

View File

@ -15,7 +15,11 @@ fs.readFile(filePath, (err, data) => {
templateDocument, templateDocument,
} as any; } as any;
const doc = new Document(options); const sectionProps = {
titlePage: true,
} as any;
const doc = new Document(options, sectionProps);
const paragraph = new Paragraph("Hello World"); const paragraph = new Paragraph("Hello World");
doc.addParagraph(paragraph); doc.addParagraph(paragraph);