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
Suggested PDF library
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Suggested PDF library
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
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
PDF is really complex, pretty cool actually.
Cheers,
Alex
Re: Suggested PDF library
It would be really nice to have a converter that would do most of the heavy lifting and then just make tweaks after that.
Re: Suggested PDF library
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.
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.
Re: Suggested PDF library
I'll look in to that. Thanks!
Re: Suggested PDF library
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.