From 8ad5485347d07ddc7b40960fc218ab299556ead4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mendon=C3=A7a?= Date: Fri, 9 Nov 2018 10:37:36 -0200 Subject: [PATCH] Improuvments in headers and footers docs --- docs/usage/headers-and-footers.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/usage/headers-and-footers.md b/docs/usage/headers-and-footers.md index 1489576dda..f1d351dee3 100644 --- a/docs/usage/headers-and-footers.md +++ b/docs/usage/headers-and-footers.md @@ -37,8 +37,12 @@ Also all the supported section properties are implemented according to: http://o // Add new section with another header and footer doc.addSection({ - headerId: header.Header.ReferenceId, - footerId: footer.Footer.ReferenceId, + headers: { + default: header + }, + footers: { + default: footer + }, pageNumberStart: 1, pageNumberFormatType: docx.PageNumberFormat.DECIMAL, });