Expand my Community achievements bar.

SOLVED

Return PDF from Browser

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 9

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

View solution in original post

5 Replies

Avatar

Former Community Member

In the submit button on the form there is a property that controls what is submitted. Change that to PDF.

Paul

Avatar

Level 2

I tried that with adobe support online with me and that did not work either.  Also, I want the XML to be returned in order to retrieve the data from it, and save a copy of PDF.  With Livecycle 7.2 I do this making 2 requests to the Adobe APIs in the servlet that handles the returned xdp, and I'm able to get both the xml and the pdf.  Thanks

Avatar

Correct answer by
Level 9

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

Avatar

Level 2

Howard, I got the first part about ensuring the pdf is checked, but the

second part I don't understand. Are you saying the pdf file itself is

embedded in the xml file? If so, how to I retrieve it? Thanks

Jeffrey A. McManigal

I/S Engineer

I/S Web and Integration Services

Mutual of Omaha

402.351.8638

jeff.mcmanigal@mutualofomaha.com

"Howard Treisman"

<forums@adobe.com

> To

"Jeffrey McManigal"

06/12/2009 08:56 <jeff.mcmanigal@mutualofomaha.com>

AM cc

Subject

Please respond to Return PDF

clearspace-466763 from Browser

762-407135-2-2034

242@mail.forums.a

dobe.com

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

Avatar

Level 2

There was a coding error in the Livecycle Example, which has since been resovled. Thanks to all who helped.