Link to home
Start Free TrialLog in
Avatar of BoB
BoB

asked on

PDF automation

Is it possible to populate the fields of a form-enabled PDF prior to publishing it on the web?  I'd like the end user to be able to click on a link ("click here for your invoice in PDF format").  The link would be to code that grabs a template PDF form, fills it and send it to the user.  Any ideas?

Thanks.

BoB
Avatar of amandeep
amandeep
Flag of United Kingdom of Great Britain and Northern Ireland image

BoB,

There are softwares available for converting HTML pages to PDF or PostScripts format.
One that I know is HTMLDOC :
  http://www.easysw.com/htmldoc

Hope this helps.

Aman
Avatar of BoB
BoB

ASKER

Actually, I already have a PDF file with form fields that I have created with Acrobat.  I would like to populate the fields of the form (say from a database) and then print out the form (or provide it via a hyperlink) with the appropriate information.

BoB
Avatar of wilcoxon
Look at PDF::API2.  I'm not sure it will let you do what you want and the documentation is definitely lacking in places, but it is the best PDF manipulation module I've found.
There is a program called pdfmodify (http://www.sanface.com/pdfmodify.html) which inputs a pdf file as a template, puts text on it and then outputs a new pdf with the merged data. It is a commercial product, but not too expensive and they seem good about trial versions.
Avatar of BoB

ASKER

Apparently the fields of a PDF file can be exported into an XML text file.  The format of this file is pretty straight-forward to follow and will allow me to provide a template PDF with the fields filled with different information based on the XML file.

BoB
Nothing has happened on this question in over 8 months. It's time for cleanup!

My recommendation, which I will post in the Cleanup topic area, is to
PAQ, refund points (user posted answer).

Please post any comments here within the next seven days. Moderators check comments here before acting on the recommendation. Experts: silence will likely be taken as assent.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jmcg
EE Cleanup Volunteer
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial