logo       

Re: Generating PDFs fromPHP: msg#00032

php.tcphp

Subject: Re: Generating PDFs fromPHP

I think I'll add this just round out the discussion, even though it doesn't speak directly to your question.

I'm happily using PHP to write invoices, packing slips, etc. for a book fulfillment system (LAMP based) by side-stepping the PDF issue altogether. I write PostScript code directly, pulling variable data from a mysql database. PostScript has some very nice built-in capabilities to generate beautiful paperwork on the fly, and PHP is the scripting language with which to write it. Nice control for stuff to fit into window envelopes, etc. Of course once you've got PostScript, PDF is a simple distill away (or ps2pdf on linux).

The beauty of the above system is that I don't have to have any 'forms' kicking around -- you just create everything on the fly. The only downside is having to spend a bit of time learning some rudimentary PostScript, but that's a good thing, right?

I'm following the PDF/FDF discussion closely, and have been cracking away at it for about two years, but still have browser/compatibility "issues". I have yet to find a *reliable* way to get all browsers/platforms to handle PDF/FDF "fillable forms." It's fantastic stuff -- when it works. In the meantime, PostScript *always* works.

Skip Evans wrote:
Hey all,

For the first time I need to generate PDF
files from PHP. fpdf.org has been recommended,
any other comments from the peanut gallery
would be greatly appreciated.

Anyone use this one? Have better results
with others?

Skip


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise