Open GoogleCodeExporter opened 9 years ago
If you pass only the body content dompdf will create a new full HTML structure
when the document is parsed. In this case dompdf will place any script blocks
found into the header of the resulting document.
As you have noted, dompdf does not currently process script blocks in the
document header. It may be reasonable to expect dompdf to process these script.
In the meantime, you can work around the issue by concatenating the necessary
structure around your content before passing it to dompdf.
Original comment by eclecticgeek
on 15 Dec 2011 at 10:39
Thank you; I'll work around it. I was just surprised that the
<head><script>...</script></head> didn't work because if I wanted
headers/footers on every PDF page then putting the script in the header looked
like a reasonable choice.
Original comment by OneWinge...@gmail.com
on 16 Dec 2011 at 12:33
Original comment by eclecticgeek
on 24 May 2013 at 3:00
Original issue reported on code.google.com by
OneWinge...@gmail.com
on 15 Dec 2011 at 12:25