NYCPHP Meetup

NYPHP.org

[php] RE: [nycphp-talk] PDF Generation

William Klein willie at pdfsystems.com
Tue Apr 27 15:20:10 EDT 2004


The only way I have found to do this is with java.  Look at
http://www.lowagie.com/iText/

There is some talk of porting iText to php but as far as I can tell not
done yet.

For generating PDFs I recomend fpdf.org 

But If you need to use an existing pdf as a template iText is the way to
go,

Hope that helps,

Willie

-----Original Message-----
From: talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org]On Behalf Of Mark L. Withington
Sent: Tuesday, April 27, 2004 2:54 PM
To: 'NYPHP Talk'
Subject: [php] RE: [nycphp-talk] PDF Generation


Don't know if this is what you're looking for.  I use htmldoc-1.8.23 to
convert HTML pages to PDF.  Works great.  Find it at
http://www.easysw.com/htmldoc/ 

--------------------------
Mark L. Withington
PLMresearch
"eBusiness for the Midsize Enterprise"
PO Box 1354
Plymouth, MA  02362
o: 800-310-3992
f: 508-746-4973
v: 508-746-2383
m: 508-801-0181
http://www.PLMresearch.com
Netscape/AOL/MSN IM: PLMresearch
mwithington at plmresearch.com
Public Key: http://www.PLMresearch.com/keys/MLW_public_key.asc
Calendar: http://www.plmresearch.com/calendar.php


-----Original Message-----
From: talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org]On Behalf Of Hans Zaunere
Sent: Tuesday, April 27, 2004 2:51 PM
To: NYPHP Talk
Subject: [nycphp-talk] PDF Generation


We have an existing form in PDF that is typically printed and used.
However, now they want some of the information to - of course - be
automatically be filled out from our database, and then downloadable and
printable.

Although only a single page, the form is quite nasty.  Although, I must
say, graphics/colors/etc aren't a concern.  I'm looking for ways to fill
in the information via PHP with the least amount of vector graphics
calculations, Postscript, or whatever else (this is mostly uncharted
territory for me).


Some thoughts

-- since the form is already in PDF, can I convert it to HTML.  Then,
using HTML as the template, fill in the information and convert back to
PDF?  I can't just stick to HTML because I'm concerned about printing
issues.

-- are there good (commercial is fine) libraries that let me do this?
While something native in PHP would be nice (I've seen PDFLib.com) I'd
have no problem using an external command and piping information around.

-- does Adobe, or anyone else, offer programmatic ways to use existing
PDFs as templates?

-- are there other/better ways to do this that I'm missing?

Money is less of a concern than time.

Thanks,

H

P.S:  Next step; sending print jobs to HP printers from Apache/PHP



_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3730 bytes
Desc: not available
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040427/07fde0ef/attachment.bin>


More information about the talk mailing list