Improve documentation

Add clarity to specifying Different First page
This commit is contained in:
Bill Butler
2022-05-19 16:25:11 -04:00
committed by GitHub
parent 2246c625ce
commit 4f846f2a4a

View File

@ -42,6 +42,17 @@ Example showing basic header and footer
_Source: https://github.com/dolanmiu/docx/blob/master/demo/8-header-footer.ts_ _Source: https://github.com/dolanmiu/docx/blob/master/demo/8-header-footer.ts_
## Different First Page
To specify `'Different First Page'`, set `titlePage: true` in the sections array as shown below.
```
sections: [
{
properties: {
titlePage: true,
```
## Multiple Headers and Footers ## Multiple Headers and Footers
More headers and footers can be accomplished by creating more `Section`. New headers and footers can be set per `Section` More headers and footers can be accomplished by creating more `Section`. New headers and footers can be set per `Section`