Page 1 of 1
Generating a PDF document
Posted: Tue Aug 21, 2007 3:34 pm
by shwanky
I'm currently working on a project where I need to generate a pdf document. The document is a contract for my company and contains images and requires quite a bit of formating. I was wondering if anyone new of a good way I could go about achieving this goal. I thought about generating an HTML document and then using either fpdf or some other process to generate the pdf. But fpdf doesn't support HTML and CSS by default, correct me if I'm wrong. The other solution I thought of would be to manually create each object using fpdf but this seems a little bit complicated and rather annoying.
Any suggestions?
Posted: Tue Aug 21, 2007 3:35 pm
by VladSun
Posted: Tue Aug 21, 2007 3:46 pm
by feyd
I'd suggest generating the document straight, in PDF, not HTML first. You may find ezpdf easier to understand and create your document in.
Posted: Tue Aug 21, 2007 3:46 pm
by shwanky
My server does not currently support PDFlib which is why I'm using fpdf.
Posted: Tue Aug 21, 2007 4:38 pm
by pickle
Other than PDFLib, fpdf seems to be the most commonly suggested PDF library. Generating a PDF with the complexity you're describing will NOT be a trivial task. Get ready for some work.
Posted: Tue Aug 21, 2007 5:21 pm
by themurph
Posted: Tue Aug 21, 2007 11:54 pm
by shwanky
pickle wrote:Other than PDFLib, fpdf seems to be the most commonly suggested PDF library. Generating a PDF with the complexity you're describing will NOT be a trivial task. Get ready for some work.
WEE!!! I have a week XD
Posted: Wed Aug 22, 2007 9:48 am
by pickle
It's doable in a week if you dedicate that week to it. Well, to be honest it depends on how good one is at wrapping your mind around document formatting. You might find it quite easy to do. The most onerous part I found when using PDFLib was the absolute sizing & positioning of almost everything.
Posted: Wed Aug 22, 2007 1:15 pm
by shwanky
pickle wrote:It's doable in a week if you dedicate that week to it. Well, to be honest it depends on how good one is at wrapping your mind around document formatting. You might find it quite easy to do. The most onerous part I found when using PDFLib was the absolute sizing & positioning of almost everything.
Ahh yah, thats the weakness in fpdf which I switching back to. There somethings it does that are alot easier than ezpdf which turns out to not be so easy ^.^... It has a lot of functions that make many redundant tasks simple, but some o fthe more complex things which I need to do are easier to do in fpdf... Its gonna be a long week! WEEEE!!!

Posted: Wed Aug 22, 2007 5:58 pm
by feyd
Can you illustrate some of these things which are harder for you to perform in ezpdf versus fpdf? I'm curious.