spipu/html2pdf

page_header/page_footer on first page only

Opened this issue · 1 comments

Is it possible to show the page_header and/or page_footer on the first page only?

I have found the following for showing page_footer only on the last page:

<end_last_page end_height="0">
    <page_footer>
        footer
    </page_footer>
</end_last_page>

Adding the following to the page tag I'm able to hide page_header on all but page 1:

hideheader="2,3,4,etc,100"

Maybe there's a more efficient way?