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!
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.
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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
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.
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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
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!!!