Forum Moderators: coopster

Message Too Old, No Replies

PDF Libraries

         

MrManager

12:28 pm on Jun 29, 2008 (gmt 0)

10+ Year Member



I'm working on a site that will generate PDF files via PHP. Since it might be used commercially, I won't be able to use PDFlib without paying a lot of money, so I'm looking for alternatives.

Which PDF libraries for PHP do you recommend? The ones I found all seemed to be unmaintained.

henry0

8:14 pm on Jun 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



FPDF is Freeware (it is stated at the beginning of the source file). There is no usage restriction. You may embed it freely in your application (commercial or not), with or without modification. You may redistribute it, too.

FPDF [fpdf.org]

MrManager

3:46 pm on Jun 30, 2008 (gmt 0)

10+ Year Member



Is FPDF any good, though? From the downloads on their site it looks like it hasn't been updated for four years.

andrewheiss

4:22 pm on Jun 30, 2008 (gmt 0)

10+ Year Member



Mozilla used FPDF to make their kitschy FF3 Download Day certificates, so it's still in active use.

For my PHP/PDF tasks I've actually always used pdftk (http://www.accesspdf.com/pdftk/), which is a command line pdf wrangler program. I just call it from php using passthru. I'm considering trying out FPDF though since it's not dependent on a specific program being installed on the server.