Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PDF Libraries

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

New User

10+ Year Member

joined:Mar 12, 2007
posts: 26
votes: 0

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.

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

Senior Member from FR 

WebmasterWorld Senior Member henry0 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2003
posts: 4449
votes: 11

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]
3:46 pm on June 30, 2008 (gmt 0)

New User

10+ Year Member

joined:Mar 12, 2007
votes: 0

Is FPDF any good, though? From the downloads on their site it looks like it hasn't been updated for four years.
4:22 pm on June 30, 2008 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 9, 2008
votes: 0

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.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members