Possible Duplicate:
Convert HTML + CSS to PDF with PHP?
I was searching for a way to convert HTML to PDF, but all I found was very limited.
Possible Duplicate:
Convert HTML + CSS to PDF with PHP?
I was searching for a way to convert HTML to PDF, but all I found was very limited.
There are plenty of issues you need to address, which you have failed to do so. Does it need to support advanced table structures, css support etc. As a start you can look into html2pdf or a paid solution PrinceXML
If you can use printing, you may try using the FreePDF XP printer driver. It uses GhostScript, so a library for it, if you want to do it programatically, may also do the trick.