Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php: looking for pdf library which supports html->pdf [duplicate]

Tags:

php

pdf

Possible Duplicate:
Convert HTML + CSS to PDF with PHP?

i'm looking for a pdf library which can render html into a pdf, with support for css + images. any suggesstions?

thanks

like image 920
Fuxi Avatar asked Mar 31 '11 22:03

Fuxi


1 Answers

You should Google search first.

I used to use TCPDF and DOMPDF but they fail massively in many cases.

I've started using WKhtmltox tools a year or so ago, been adding to it ever since.

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

Keep in mind this uses a real browser (webkit) thus most quirks are addressed by major browsers like chrome and safari. The alternatives, on the other hand, have their own problems. I remember being bugged with TCPDF tables, for example.

like image 199
Christian Avatar answered Nov 15 '22 10:11

Christian