spipu / html2pdf

OFFICIAL PROJECT | HTML to PDF converter written in PHP
http://html2pdf.fr/en/default
Open Software License 3.0
1.67k stars 746 forks source link

html tag [header] Html2Pdf Error [1] #638

Open Mark-Bestwick opened 3 years ago

Mark-Bestwick commented 3 years ago

Html2Pdf Error [1]
The html tag [header] is not known by Html2Pdf. You can create it and push it on the Html2Pdf GitHub project.
File: C:\inetpub\wwwroot\cvs-manager\vendor\spipu\html2pdf\src\Html2Pdf.php
Line: 1441
Invalid Tag: header
Html Line: 481

spipu commented 3 years ago

this tag is not supported. Use a div instead

Mark-Bestwick commented 3 years ago

can't use a div for this instance as need the header tag for splitting tables over multi pages and having a header and footer for Company logo and Page Number on each page

Mailstack commented 3 years ago

Were you able to find a way around the header tag ?

I'm facing a lot of similar issues, isn't there a way we could implement it ? There are a lot of other very simple tags that aren't working, with no workaround

Mark-Bestwick commented 3 years ago

Hi Mailstack, I did get around it by changing it to a div as spipu previously suggested above. div id="header" ... but I'm now having print css issues with Html2Pdf