Return PDF from Browser

Avatar

Avatar

Jeff_Mc

Avatar

Jeff_Mc

Jeff_Mc

09-06-2009

I have an xdp form which I can render to the browser and upon a submit I have a servlet that gets the xml.  I would also like to have the PDF returned to me as well.  I used the Quick Start: Handling submitted forms using the Java API found here http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/js/html/wwhelp.htm?... under the Forms Service API Quick Starts, but am unable to return the PDF as noted in the code.  Any ideas?  Thanks

View Entire Topic

Avatar

Avatar

HowardTreisman

Avatar

HowardTreisman

HowardTreisman

12-06-2009

You can check a checkbox on the XDP submit format that says "Include PDF". (I can't remember the exact wording, but it's something like that.)

This will cause the entire PDF file to be base64 encoded, and embedded into the XDP XML file.

You should then be able to extract it from the XML, decode it, and save it.

Note that submitting PDf in any way from a form requires either Acrobat or Reader Extensions.

Howard

http://www.avoka.com