Converting HTML to PDF (not PDF to HTML) using PHP

Try this:

  • tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf_examples
  • fpdf.org
  • http://code.google.com/p/wkhtmltopdf/

Regarding wkhtmltopdf:

  • This thing works blazingly fast and it can also handle all kinds of HTML/CSS you throw at it, so when you need speed, you should seriosly consider it. We switch to it recently in our company and our PDF serving got enourmous speed-boost.

  • At least under Linux it needs XOrg libraries to be installed - servers usually don't have them, so that might be your problem.