Page 1 of 1

best of the best php 's pdf class

Posted: Tue Jan 16, 2007 9:05 pm
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...

Posted: Tue Jan 16, 2007 9:39 pm
by Kieran Huggins
This isn't a poll...

I've only used ezpdf - it was ok

Posted: Tue Jan 16, 2007 11:26 pm
by feyd
ezpdf and fpdf are both good.

Posted: Wed Jan 17, 2007 1:16 am
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.

HTML -> PDF

Posted: Wed Jan 17, 2007 1:40 am
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 ?

Posted: Wed Jan 17, 2007 8:41 am
by feyd
Tables were pretty simple when I used ezpdf last... (well over a year ago.)

Posted: Wed Jan 17, 2007 9:50 am
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 :?

Posted: Wed Jan 17, 2007 11:42 pm
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.

Posted: Thu Jan 18, 2007 2:09 am
by dibyendrah
Has anybody tried to convert html file to pdf ? I couldn't do that using fpdf.

Posted: Thu Jan 18, 2007 10:03 am
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

Posted: Thu Jan 18, 2007 12:27 pm
by dibyendrah
I've heard about HTMLDOC but never knew the real use. I'll try it.

Posted: Thu Jan 18, 2007 12:38 pm
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