You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`html-pdf` can read the header or footer of a page out of the html source. You can either set a default header or footer or overwrite that by appending a page number (1 based index) to the `id="pageHeader"` attribute of a html tag.
61
+
62
+
You can use any combination of those tags. The library tries to find any element, that contains the `pageHeader` or `pageFooter` id prefix.
63
+
```html
64
+
<divid="pageHeader">Default header</div>
65
+
<divid="pageHeader-first">Header on first page</div>
66
+
<divid="pageHeader-2">Header on second page</div>
67
+
<divid="pageHeader-3">Header on third page</div>
68
+
<divid="pageHeader-last">Header on last page</div>
69
+
...
70
+
<divid="pageFooter">Default footer</div>
71
+
<divid="pageFooter-first">Footer on first page</div>
72
+
<divid="pageFooter-2">Footer on second page</div>
73
+
<divid="pageFooter-last">Footer on last page</div>
0 commit comments