These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Filling pdf form with db data

stef_193
Registered: May 9 2007
Posts: 6

Hello!
I have a web application (php + mysql) and I want to fill a pdf file with the data extracted from the database. Of course, loading data are each time different, according to the selected record. As far as I read in these forums, the best way to achieve it is to do send an HTTP REQUEST by Javascript. I wonder if it is possible to have any example about it. Thanks in advance for any help. Have a nice day.

My Product Information:
Reader 6.0.0, Unix/Linux
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Have you looked at the FDF Toolkit? I believe it has some examples. But other than this there aren't really many examples of server side scripting. But you could take a look at this article which uses a sever script and FDF to populate a documents metadata. (last example in article)

[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/auto_insert_metadata/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/auto_insert_metadata/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script