Suggested PDF library

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Suggested PDF library

Post by alex.barylski »

I'm using a wrapper for FPDF and it's ok but searching the PHP.net site I see this:

http://ca.php.net/manual/en/ref.pdf.php

Googling resulted in even more...

Any library that best supported, clearly becoming a winner/leader??? Which do you prefer and why?

Cheers,
Alex
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Suggested PDF library

Post by pickle »

I've used TCPDF, PDFLib, and FPDF. The syntax between them all is pretty similar, TCPDF has a bit of an annoying way to customize (you need to extend the TCPDF object). For most things, FPDF is probably good enough for most cases.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Suggested PDF library

Post by alex.barylski »

I just realized FPDF actually builds the PDF document and doesn't take advantage of a extension API like pdflib. I like that :)

PDF is really complex, pretty cool actually. :)

Cheers,
Alex
JakeJ
Forum Regular
Posts: 675
Joined: Thu Dec 10, 2009 6:27 pm

Re: Suggested PDF library

Post by JakeJ »

It would be really nice to have a converter that would do most of the heavy lifting and then just make tweaks after that.
dzelenika
Forum Newbie
Posts: 10
Joined: Sat Feb 20, 2010 2:29 pm

Re: Suggested PDF library

Post by dzelenika »

I'm using XSL-FO for creating PDF files (mostly reports)
Php is able to produce xml fo files. These files are input for FOP.
FOP is an apache open source project which produces PDF(or other document formats) from adequate XML files.
JakeJ
Forum Regular
Posts: 675
Joined: Thu Dec 10, 2009 6:27 pm

Re: Suggested PDF library

Post by JakeJ »

I'll look in to that. Thanks!
JakeJ
Forum Regular
Posts: 675
Joined: Thu Dec 10, 2009 6:27 pm

Re: Suggested PDF library

Post by JakeJ »

After looking them over, I decided to go with tcpdf. For some reason it just seems easier to deal with, and definitely has all the features I need.
Post Reply