Add footnotes as part of export

This commit is contained in:
Dolan
2018-06-11 00:48:50 +01:00
parent 6085f69c22
commit c19a2e71b5
3 changed files with 13 additions and 1 deletions

View File

@ -40,6 +40,7 @@ export class Compiler {
const xmlFooterRelationships = xml(this.formatter.format(this.file.Footer.Relationships));
const xmlContentTypes = xml(this.formatter.format(this.file.ContentTypes));
const xmlAppProperties = xml(this.formatter.format(this.file.AppProperties));
const xmlFootnotes = xml(this.formatter.format(this.file.FootNotes));
this.archive.append(xmlDocument, {
name: "word/document.xml",
@ -73,6 +74,10 @@ export class Compiler {
name: "word/footer1.xml",
});
this.archive.append(xmlFootnotes, {
name: "word/footnotes.xml",
});
this.archive.append(xmlRelationships, {
name: "word/_rels/document.xml.rels",
});