Php: search pdf library that supports html-> pdf

Possible duplicate:
Convert HTML + CSS to PDF using PHP?

I am looking for a PDF library that can display html in pdf, with support for css + images. any suggestions?

thanks

+7
source share
2 answers

You must search Google first.

I used to use TCPDF and DOMPDF, but in many cases they failed.

I started using WKhtmltox tools a year ago, adding to it ever since.

Since it relies on webkit, you get the advantage of some CSS 3 and HTML 5.

Keep in mind that this uses a real browser (webkit), so most quirks are addressed by large browsers such as chrome and safari. Alternatives, on the other hand, have their problems. I remember listening with TCPDF tables, for example.

+6
source

tcPDF , domPDF and mPDF provide HTML in PDF format, which supports styling (and I also believe that images). These are all pure PHP libraries, with no external dependencies or command line requirements. There may be others.

+1
source

All Articles