How to put form data into a .pdf?
March 29, 2007 4:12 PM Subscribe
What's the best way to take form data from a website and drop it into a print-ready .pdf?
I've been searching, but I can't find a solution that seems to fit my needs. The ideal solution would allow:
1. Users to submit a form online
2. The data from the form is inserted into a print-ready .pdf
3. The finished .pdf is shown for a preview (with some sort of 'Accept' button)
4. If accepted, the .pdf is emailed to a set address
I can handle Item #1 (all on my own!), but that's where it ends. Any ideas on how to fill in the pieces?
I've been searching, but I can't find a solution that seems to fit my needs. The ideal solution would allow:
1. Users to submit a form online
2. The data from the form is inserted into a print-ready .pdf
3. The finished .pdf is shown for a preview (with some sort of 'Accept' button)
4. If accepted, the .pdf is emailed to a set address
I can handle Item #1 (all on my own!), but that's where it ends. Any ideas on how to fill in the pieces?
Adobe has document workflow management and lifecycle stuff that you might look into. It is not an HTML form, but it is pretty awesome insofar as the topic is concerned. see, for example, http://www.adobe.com/products/server/formmanager/
posted by boo_radley at 4:40 PM on March 29, 2007
posted by boo_radley at 4:40 PM on March 29, 2007
LaTeX is good for this kind of thing, I did something similar a while back. Just make a template latex source file, fill in the blanks with sed, and run pdflatex. If you need more flexibility in the form, process the source file with some templating system (I like perl tt).
posted by fvw at 5:12 PM on March 29, 2007
posted by fvw at 5:12 PM on March 29, 2007
Response by poster: To attempt to answer these questions:
Ideally, I'd find some inexpensive/free scripts that handled this or could be pieced together to do so. I am no expert at php/js scripting -- typically at the take-an-existing-script-and-modify-it level. I'd love a PHP-based solution.
I'll check into the Adobe idea -- straight to the source. From a quick glance, it looks a little too large (and probably costly) for my application. But, it might be a good jumping-off point.
Any online examples of how to implement the LaTeX idea?
posted by jmevius at 5:29 PM on March 29, 2007
Ideally, I'd find some inexpensive/free scripts that handled this or could be pieced together to do so. I am no expert at php/js scripting -- typically at the take-an-existing-script-and-modify-it level. I'd love a PHP-based solution.
I'll check into the Adobe idea -- straight to the source. From a quick glance, it looks a little too large (and probably costly) for my application. But, it might be a good jumping-off point.
Any online examples of how to implement the LaTeX idea?
posted by jmevius at 5:29 PM on March 29, 2007
If you have PHP available... FPDF works very well.
http://www.fpdf.org/
posted by bofe at 6:04 PM on March 29, 2007
http://www.fpdf.org/
posted by bofe at 6:04 PM on March 29, 2007
Response by poster: FPDF requires the documents be recreated, correct?
I guess I should explain my situation further. I have pre-existing (fixed in terms of look/feel, fonts, type sizing, style, etc.) documents that need to be customized before printing. There are a handful of text fields for each document that should be dynamically entered (think 'Address' on a flyer).
posted by jmevius at 6:25 PM on March 29, 2007
I guess I should explain my situation further. I have pre-existing (fixed in terms of look/feel, fonts, type sizing, style, etc.) documents that need to be customized before printing. There are a handful of text fields for each document that should be dynamically entered (think 'Address' on a flyer).
posted by jmevius at 6:25 PM on March 29, 2007
Response by poster: I'd also heard a recommendation for XData + Quark. I don't currently have a copy of Quark, but it wouldn't be prohibitive to purchase one.
XData (http://www.thepowerxchange.com/xdata_1536_prd1.html), this might be the link.
Has anyone used something similar?
posted by jmevius at 7:25 PM on March 29, 2007
XData (http://www.thepowerxchange.com/xdata_1536_prd1.html), this might be the link.
Has anyone used something similar?
posted by jmevius at 7:25 PM on March 29, 2007
FPDF is probably your best bet for an automated solution. You can import a template PDF using this, and then use FPDF to place your form field data.
I'm working on a project now for a large, very image conscious client that uses it. Works great.
posted by nonmyopicdave at 9:25 PM on March 29, 2007
I'm working on a project now for a large, very image conscious client that uses it. Works great.
posted by nonmyopicdave at 9:25 PM on March 29, 2007
Best answer: I built a solution like this a few months ago for a client.
Check it out.
posted by Wild_Eep at 7:22 AM on March 30, 2007 [1 favorite]
Check it out.
posted by Wild_Eep at 7:22 AM on March 30, 2007 [1 favorite]
Response by poster: @Wild_Eep -- Wow, that seems almost dead-on to what I'm trying to do. Is there a chance you'd be interested in talking about some of the details? If so, my email address is in my profile.
Thanks in advance...
posted by jmevius at 10:15 AM on March 30, 2007
Thanks in advance...
posted by jmevius at 10:15 AM on March 30, 2007
This thread is closed to new comments.
posted by coined at 4:29 PM on March 29, 2007