Page 1 of 1
PDF generation with editable fields
Posted: Mon May 08, 2006 9:30 am
by Todd_Z
I'm looking to create a script that generates dynamic PDFs in PHP which include editable fields so that the user would be able to enter in specific information that is not already stored in the database.
Has anyone seen a library that includes this functionality? I couldn't find it in any of the popular pdf library docs.
Posted: Mon May 08, 2006 4:09 pm
by andym01480
Section 8.6 of the PDF Reference Manual 6.9MB download! talks about interactive forms. Good luck, was a bit over my head!
http://partners.adobe.com/public/develo ... ence16.pdf
Posted: Tue May 16, 2006 10:04 pm
by Todd_Z
So I've been fooling around with the pdf libraries, and I'm having a hell of a time, not to mention I can't find a library which can utilize editable fields.
I have a bunch of forms, i.e. real estate contacts / leases which are going to be populated with static information, as well as dynamic information.
Anyone have any similar scripts?
Posted: Tue May 16, 2006 10:53 pm
by RobertGonzalez
If you can generate PDF's with database data or static variable assignments, then assigning $_POST vars shouldn't be that much different. Am I wrong?
EDIT | I just googled searched PHP PDF Generation and found some
pretty cool results.
Posted: Tue May 16, 2006 11:02 pm
by bdlang
Notice the first result in the Google search mentioned by
Everah is
FPDF. I've worked with this a bit and had decent (not perfect) results. At least it's free and relatively easy to work with and extend.

Posted: Tue May 16, 2006 11:02 pm
by Burrito
an easy alternative is to generate .fdf files from pdf forms. You can then easily manipulate the variable values and call you .pdf file from your .fdf file and dump in the dynamic information.
I do it on several of my web sites and it works without a hitch.