Reputation: 2263
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.
Upvotes: 0
Views: 2167
Reputation: 2320
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
Upvotes: 0
Reputation: 63139
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.
Upvotes: 0
Reputation: 8343
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.
Upvotes: 1