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

Auto Fill PDF

brobbsnet
Registered: Jan 9 2007
Posts: 4

I have a java based web application with servlets.
I have an adobe acrobat pdf document that is editable.You can open this pdf form and type in to fill it out.
I intend to supply and an XML String to this pdf document and have PDF automatically fill itself out , so i can print it. The data for the PDF comes from the web application.
 
Any help will be appriciated.

My Product Information:
Acrobat Standard 7, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Not a problem. Useing the doc.submitForm() function in Acrobat JavaScript you can send an HTTP request to your JavaScript, which would then send back the fill data.

Take a look at this article:

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

Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://partners.adobe.com/public/developer/en/acrobat/sdk/
pdf/javascript/AcroJS.pdf]Acrobat JavaScript Reference[/url]

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

saraswati
Registered: Jul 13 2009
Posts: 2
hi , i am using

var url = "mailto:" + escape(eaddr) + "?" +
"cc=" + escape("") + "&" +
"bcc=" + escape("") + "&" +
"subject=" + escape(emailSubject) + "&" +
"body=" + escape(emailMessage) + "&" +
"ui=false";

var e;
try
{
result = doc.submitForm({
bAnnotations: true,
bInclNMKey: true,
bEmpty: true, //EDIT 6/6/2006 bEmpty used to not save any empty fields
oJavaScript:
{
Before: 'beforeFDFMerge();',
After: 'afterFDFMerge();'
},




but somehow this doc.submitForm() is not submitting all the values. some of the data of radio button are getting deselected on submitting...

where is the problem???

thanks in advance
Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
thomp wrote:
Take a look at this article:
[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/submitting_data/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/submitting_data/[/url]
Mmmhh…

>>>Page not found - The requested page could not be found;-)
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
It is an old post and the link was not updated when this site's content was reorgainized.

Use of the Learing Center Tutorials turned up:

[url=http://www.acrobatusers.com/tutorials/2006/submitting_data]Submitting Data[/url] by Thom Parker

George Kaiser

Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
Thanks gkaiseril !
saraswati
Registered: Jul 13 2009
Posts: 2
hi , i am using

var url = "mailto:" + escape(eaddr) + "?" +
"cc=" + escape("") + "&" +
"bcc=" + escape("") + "&" +
"subject=" + escape(emailSubject) + "&" +
"body=" + escape(emailMessage) + "&" +
"ui=false";

var e;
try
{
result = doc.submitForm({
bAnnotations: true,
bInclNMKey: true,
bEmpty: true, //EDIT 6/6/2006 bEmpty used to not save any empty fields
oJavaScript:
{
Before: 'beforeFDFMerge();',
After: 'afterFDFMerge();'
},




but somehow this doc.submitForm() is not submitting all the values. some of the data of radio button are getting deselected on submitting...

where is the problem???

thanks in advance