Add footnotes as part of export
This commit is contained in:
@ -40,6 +40,7 @@ export class Compiler {
|
|||||||
const xmlFooterRelationships = xml(this.formatter.format(this.file.Footer.Relationships));
|
const xmlFooterRelationships = xml(this.formatter.format(this.file.Footer.Relationships));
|
||||||
const xmlContentTypes = xml(this.formatter.format(this.file.ContentTypes));
|
const xmlContentTypes = xml(this.formatter.format(this.file.ContentTypes));
|
||||||
const xmlAppProperties = xml(this.formatter.format(this.file.AppProperties));
|
const xmlAppProperties = xml(this.formatter.format(this.file.AppProperties));
|
||||||
|
const xmlFootnotes = xml(this.formatter.format(this.file.FootNotes));
|
||||||
|
|
||||||
this.archive.append(xmlDocument, {
|
this.archive.append(xmlDocument, {
|
||||||
name: "word/document.xml",
|
name: "word/document.xml",
|
||||||
@ -73,6 +74,10 @@ export class Compiler {
|
|||||||
name: "word/footer1.xml",
|
name: "word/footer1.xml",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.archive.append(xmlFootnotes, {
|
||||||
|
name: "word/footnotes.xml",
|
||||||
|
});
|
||||||
|
|
||||||
this.archive.append(xmlRelationships, {
|
this.archive.append(xmlRelationships, {
|
||||||
name: "word/_rels/document.xml.rels",
|
name: "word/_rels/document.xml.rels",
|
||||||
});
|
});
|
||||||
|
@ -82,6 +82,12 @@ export class File {
|
|||||||
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",
|
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",
|
||||||
"footer1.xml",
|
"footer1.xml",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
this.docRelationships.createRelationship(
|
||||||
|
5,
|
||||||
|
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",
|
||||||
|
"footnotes.xml",
|
||||||
|
);
|
||||||
this.media = new Media();
|
this.media = new Media();
|
||||||
|
|
||||||
this.headerWrapper = new HeaderWrapper(this.media);
|
this.headerWrapper = new HeaderWrapper(this.media);
|
||||||
|
@ -14,7 +14,8 @@ export type RelationshipType =
|
|||||||
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"
|
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"
|
||||||
| "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"
|
| "http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"
|
||||||
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"
|
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties"
|
||||||
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
|
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink"
|
||||||
|
| "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes";
|
||||||
|
|
||||||
export type TargetModeType = "External";
|
export type TargetModeType = "External";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user