Friday, May 6, 2011

PHP convertor Html(css) to Pdf ?

Duplicate: Convert HTML + CSS to PDF with PHP?

I am looking php based library for HTML->PDF convertor, for report generation in my application. By far I found one, and it seems good, but has some limitations. Can anyone suggest any other advanced ones?

Thanks.

From stackoverflow
  • Your question may be answered by this previously-posted question. However, you may also want to take a look at HTML2PDF, or any of the variety of PHP PDF libraries that can be found with a quick Google search.

  • A while ago I used html2ps and then ghostscript to convert html pages to pdf, because it gave better results, then all html2pdf libraries.

    But the may have changed in the time. The best is to try some libraries, because the quality of the generated pdf's also depends on the style of html you are using as base.

  • If using FPDF there is a script which extends that class to do some basic HTML formatting (not CSS though). Available here: http://www.fpdf.org/en/script/script41.php

0 comments:

Post a Comment