Justin Hendrickson
2007-08-24 18:40:32 UTC
Per Andi's blog post
(http://andigutmans.blogspot.com/2007/08/use-cases-for-php-and-pdf-needed.html),
I'd like to share my experiences with Pdf usage in PHP.
I have worked on two projects where Pdf output was used. The first was
an e-commerce site where physical invoice printouts were needed. The
second is a legacy printing solution that allows replacement of line
printers and preprinted forms with a laser printers and a template Pdf
which is printed over.
In both cases, the primary required feature was the ability to output
over pre-formatted templates. In the later case, additional features
have been developed to allow for images and barcodes to be added to
the printout.
In both cases, I used FPDF because it was free and (barely) sufficient.
Since the second project is still in active development, I've reviewed
Zend_Pdf from time to time to see if the ability to use pre-formatted
templates had been added. From what I can tell, it has not. There does
appear to be a stub of code for copying existing templates, but it is
only a stub that throws an exception when you try to use it
(Zend/Pdf/Page.php, line 236).
I would give up my first born to use Zend_Pdf instead of FPDF, but
until this feature is added (or if it already is, I figure out how to
use it), I'm stuck with FPDF.
(http://andigutmans.blogspot.com/2007/08/use-cases-for-php-and-pdf-needed.html),
I'd like to share my experiences with Pdf usage in PHP.
I have worked on two projects where Pdf output was used. The first was
an e-commerce site where physical invoice printouts were needed. The
second is a legacy printing solution that allows replacement of line
printers and preprinted forms with a laser printers and a template Pdf
which is printed over.
In both cases, the primary required feature was the ability to output
over pre-formatted templates. In the later case, additional features
have been developed to allow for images and barcodes to be added to
the printout.
In both cases, I used FPDF because it was free and (barely) sufficient.
Since the second project is still in active development, I've reviewed
Zend_Pdf from time to time to see if the ability to use pre-formatted
templates had been added. From what I can tell, it has not. There does
appear to be a stub of code for copying existing templates, but it is
only a stub that throws an exception when you try to use it
(Zend/Pdf/Page.php, line 236).
I would give up my first born to use Zend_Pdf instead of FPDF, but
until this feature is added (or if it already is, I figure out how to
use it), I'm stuck with FPDF.