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

submit a PDF as a PDF to a servlet, and how to get my PDF from servlet

hisokabane
Registered: Apr 24 2008
Posts: 4

Hi all as the title above,

have a button typeformat as PDF and sent to a URL( which is my servlet ) after this step how to get the PDF from my servlet.

the PDF has sent to my servlet and stop, so is there any way to get the PDF i sent ?

can someone help me?

thanks

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Once the PDF has been sent over the internet it's outside of Acrobat's control. If you wrote the servlet, then you should know exactly how to "get the PDF". If you acquired this servlet from someone else then they have the information you need.

Are you asking how to acquire the PDF data from the HTTP request sent to a server script? The PDF data is in the body of the HTTP request. The number of bytes you need to read out of the body is one of the paramters in the HTTP request header. How you acquire the request body data depends on the language and framework you're using for the server script.

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