PHP Printing with PDF

Rasmus Lerdorf

Ever tried to print an HTML page? Did it ever look decent? Generating a PDF document from a PHP script is easier than you think. Take two parts PHP, 1 part pdflib, a cup of TTF fonts and you have a tasty dish any printer would love.