Reputation: 21
We are generating pdf based report cards for our clients on a php based ERP platform. They want to be able to generate around 2000 report cards one pdf file as seperate pages.
We have done this successfully using an HTML to PDF converter called DomPDF. However the script is too heavy and takes about an hour to complete and sometimes breaks, which is unacceptable. They currently used a desktop based software which delivers the report cards instantly via Crystal Reports.
In PHP we were wondering how we could generate such a large number of PDF pages (2000) with a much a higher speed.(hopefully less than 10 seconds).
Any suggestions for this would be welcome.
The server is running on Linux Ubuntu, we dont mind using a solution that involves use of exec.
Upvotes: 2
Views: 3044
Reputation: 11
Using WKHTMLTOPDF to generate a PDF report with between 450 and 500 pages(2 MB text only) takes 30 to 50 seconds, while the same amount of data in TCPDF or HTMLTOPDF or DOMPDF takes between 5 and 8 mins
Upvotes: 1
Reputation: 13811
Or Maybe Try the i-report designer. I had used it once and its great but you need to read forums or tutorials for customization and one thing about this is its an Open source, hope it would help you.
http://community.jaspersoft.com/project/ireport-designer
Upvotes: 0
Reputation: 29381
If you want to generate the PDFs from HTML, I would recommend using WKHTMLTOPDF via exec() or system(). We're using it in some applications and haven't had any problems at all so far (but neither do we generate the same amount of data as you guys).
Upvotes: 0
Reputation: 25
We have been using wkhtmltopdf-utility that does quite a good job, but I'm not sure it's the fastest one out there.
Upvotes: 0