Posts Tagged ‘PHP’

HTML to PDF Library for PHP 5

Wednesday, July 8th, 2009

DomPDF HTML to PDF As I had to build a simple html to pdf converting for a client using php, I found a beautiful library called DOMPDF written by Benj Carson.

It seemed to be very lightweight and uncomplicated, which turned out to be true. In a standard case it really is as simple as

$pdf->load_html($html);

I am going to talk about the basic usage and problems I had to solve, specially with umlauts / non latin characters.
(more…)