Skip to content Skip to sidebar Skip to footer

Convert Html File To Pdf Using Dompdf

How do I properly use dompdf to convert html files into pdf. I'm doing something like this:

Solution 1:

checkout.html is valid ? Is there any table and unclosed tags ?

There was an answer on Google Groups :

  1. check to see if you have any unclosed tags within the the table; DOMPDF can have trouble when your HTML isn't well-formed

  2. check for table-related display types in your CSS on elements where the table structure hasn't been explicitly outlined

UPDATE :

Your checkout.html file ISN'T valid. There is a problem :

<!--<th>Discount</th><!-- commented out jan 21--> 

Line 5, Column 31: invalid comment declaration: found name start character outside comment but inside comment declaration

Your comment block isn't closed. You can use this line :

<!--<th>Discount</th>--><!-- commented out jan 21--> 

Post a Comment for "Convert Html File To Pdf Using Dompdf"