Merge branch 'importDotx' of https://github.com/amitm02/docx into importDotx

This commit is contained in:
Dolan
2018-10-05 01:21:29 +01:00
4 changed files with 72 additions and 18 deletions

View File

@ -12,7 +12,7 @@ fs.readFile(filePath, (err, data) => {
importDotx.extract(data).then((templateDocument) => {
// This any needs fixing
const sectionProps = {
titlePage: true,
titlePage: templateDocument.titlePageIsDefined,
} as any;
const doc = new Document(undefined, sectionProps, {