psliwa / PHPPdf

Pdf and graphic files generator library written in php
http://ohey.pl
MIT License
339 stars 77 forks source link

[feature_request] Use fpdf instead of Zend_Pdf #85

Open smehtaCAS opened 9 years ago

smehtaCAS commented 9 years ago

Hi,

As I understand, currently, Zend_Pdf is used to generate the pdf.

Is it possible to replace Zend_Pdf with fpdf to generate the pdf? fpdf is very much memory efficient and can perform much better than Zend_Pdf.

Thanks for such a great library!

psliwa commented 9 years ago

I will look closer to fpdf - if its api philosophy matches to PHPPdf and fpdf engine would be more efficent than Zend_Pdf - I will implement it. I thought about Haru (http://php.net/manual/en/book.haru.php) - it is available as php extension, api philosophy matches to PHPPdf and there is the chance it will be even more efficient.

smehtaCAS commented 9 years ago

Thanks!

smehtaCAS commented 9 years ago

fpdf should be a very good performance boost. Currently, for us, it takes about 25 seconds to generate a 15 page pdf with one table. The same takes about 2 seconds with fpdf.