best of the best php 's pdf class

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
PHPycho
Forum Contributor
Posts: 336
Joined: Fri Jan 06, 2006 12:37 pm

best of the best php 's pdf class

Post by PHPycho »

i am wondering to know which one is the best pdf generation class.
I want the devnetworkians to jott down here..
lets have a survey here...
Last edited by PHPycho on Tue Jan 16, 2007 10:04 pm, edited 1 time in total.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

This isn't a poll...

I've only used ezpdf - it was ok
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

ezpdf and fpdf are both good.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

PHPycho, maybe you could give ezpdf and fpdf both a try and post a mini-review of your experience using them. I think it would be helpful to many here.
(#10850)
jbflam
Forum Newbie
Posts: 7
Joined: Wed Jan 10, 2007 3:48 am
Location: Singapore

HTML -> PDF

Post by jbflam »

Does anyone knows a class that handles html to pdf well?
I am using ezpdf now and it is really a pain to use.
Specially when you have to handle html table...

I never tried fpdf , anyone thinks it's better for html->pdf

I read some commercial ones, anyone tested them ?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Tables were pretty simple when I used ezpdf last... (well over a year ago.)
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

I use PDFLib. I don't think it's as intuitive to use as FPDF, but I think it's more powerful. It's also more expensive :?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
jbflam
Forum Newbie
Posts: 7
Joined: Wed Jan 10, 2007 3:48 am
Location: Singapore

Post by jbflam »

feyd wrote:Tables were pretty simple when I used ezpdf last... (well over a year ago.)
Well building tables dynamically was a pain.
Of course a static table is very simple, when you know how many rows / cell and what will be inside, it is simple.

But I was trying to build a dynamic system, and this library even though i thank people who coded it , is not great for dynamic system.
I used it last year as well.
User avatar
dibyendrah
Forum Contributor
Posts: 491
Joined: Wed Oct 19, 2005 5:14 am
Location: Nepal
Contact:

Post by dibyendrah »

Has anybody tried to convert html file to pdf ? I couldn't do that using fpdf.
waskelton4
Forum Contributor
Posts: 132
Joined: Mon Sep 09, 2002 6:42 pm

Post by waskelton4 »

i have an application that uses htmldoc
http://www.htmldoc.org/

It is a linux command line program that i run using exec() (or maybe passthru()) I don't remember.. but is is one of those.

It works pretty well for me. I'm not converting any complex html though. just a table with some text in it.

ws
User avatar
dibyendrah
Forum Contributor
Posts: 491
Joined: Wed Oct 19, 2005 5:14 am
Location: Nepal
Contact:

Post by dibyendrah »

I've heard about HTMLDOC but never knew the real use. I'll try it.
User avatar
batfastad
Forum Contributor
Posts: 433
Joined: Tue Mar 30, 2004 4:24 am
Location: London, UK

Post by batfastad »

I use FPDF and it works well.

I use it for generating PDF invoice / order forms, and I found it pretty time consuming getting it set up with the layout I wanted. But there really is no other way to do it I don't think!

There is a thing called FPDI which works in combination with FPDF to allow you to use an existing PDF file as a template (I think), but I've never really looked into it.

Though it sounds like it would be very useful - design up your PDF template in Illustrator or Quark or whatever, with placeholder text in the various positions. Then I think the combination of FPDF and FPDI will let you replace those placeholders with values.

At least I think that's how it works - but I didn't have time to experiment too much. I just did it manually with the FPDF class syntax.
If anyone has used FPDI then please correct me if I'm talking rubbish :lol:


HTH
Post Reply