Hi, i am using Adobe Livecycle and a java-web based application running in a jboss server.
What i want is to submit the full pdf, and in the action servlet , do somethings and return an xml with
the data that has to be refilled the form. The same behaviour as a web application does. I thought in 2 possibilities:
1. with a FormCal function, i use
var result = get() or post()
in the result we get the xml returned from server and after i move data to the form. This is ok no problem.
The problem is how i can send the pdf with get() or post() function? is it possible?
2. with submitForm, but the problem here is that when i return the xml from the server, in the form appears
this xml! Is there a way to avoid this? Submitform doesnot wait for the server to answer. Also, what is the
way of retrieve the pdf submitted with java, anywhere to get some info would be appreciated 'cause i did not find anything.
I dont know if this is possible to do it with adobe, i need to know for using this tool. Thank you in advance.
The correct way to do this is to use "submitForm". This function sends an HTTP request to the server (with the specified data type in the body of the request) and waits for an HTTP response to return. Acrobat will only merge data back into the PDF if the return data is in the correct format (XDP) and the submission URL is postfixed with "#FDF". Also make sure that the MIME type in the HTTP Response Header is set correctly.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script