Create pdf invoice header and footer?

Hello developers,



Currently I am adjusting the pdf invoice to meet the wishes of our customer. They want each page to have a header and a footer. I can't seem to figure out how this can be achieved via invoice.tpl.



I always get a header, a list of order items (over multiple pages) and than the footer.



All help is appreciated.