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.
Christian
source share