-
-
Notifications
You must be signed in to change notification settings - Fork 495
Multiple Sections, Headers and Footers
Dolan edited this page Jun 25, 2018
·
1 revision
Now there is option to add multiple headers and footers (so sections can have different headers and footers).
Also all the supported section properties are implemented according to: http://officeopenxml.com/WPsection.php
const header = this.document.createHeader();
const footer = this.document.createFooter();
// Add new section with another header and footer
doc.addSection({
headerId: header.Header.referenceId,
footerId: footer.Footer.referenceId,
pageNumberStart: 1,
pageNumberFormatType: docx.PageNumberFormat.DECIMAL,
});