1

Hello,

I'm new to html2pdf. I'd like to add a first_page_header. I want to generate a letter which includes the recipient address on the first page and on all other pages there is the standard header. Is there a solution for that already inclueded in the html2pdf class?

Thanks in advance for any help.

greetings
Andi

2

I hacked a bit around and added a new tag first_page_header. In my case this works right now but it is not yet clean code. I deleted the $this->_setPageHeader(); within the _tag_open_PAGE_HEADER() method and let this call execute within the _setNewPage() method. With this change I get the header on all pages except the first one. To get the header of the first page I'm executing the method _setFirstPageHeader(), which is nearly the same as _setPageHeader(), within the node function _tag_open_FIRST_PAGE_HEADER.

This hack is kind of headache since I do not know how often these functions were executed. If there's a better solution or someone is interested to insert a clean version into the code, I'll give you my code.

greetings
Andi