Which html tags can I use in the header and footer
The header and footer paramaters should contain valid HTML markup with the following classes used to inject printing values into them:
date:formatted print datetitle:document titleurl:document locationpageNumber:current page numbertotalPages:total pages in the document
For example, the following markup will generate Page N of NN page numbering:
<span style='font-size:10px'>Page <span class='pageNumber'></span> of <span class='totalPages'></span>.</span>
Please note that the top and bottom page margins are important because the page content may overlap the footer or header.