html2pdf icon indicating copy to clipboard operation
html2pdf copied to clipboard

html tag [header] Html2Pdf Error [1]

Open Mark-Bestwick opened this issue 4 years ago • 4 comments

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

Mark-Bestwick avatar Mar 09 '21 14:03 Mark-Bestwick

this tag is not supported. Use a div instead

spipu avatar Mar 09 '21 15:03 spipu

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

Mark-Bestwick avatar Mar 09 '21 15:03 Mark-Bestwick

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

Mailstack avatar Mar 16 '21 17:03 Mailstack

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

Mark-Bestwick avatar Mar 17 '21 08:03 Mark-Bestwick