5 Replies Latest reply on Jun 18, 2009 7:21 AM by Jeff_Mc

    Return PDF from Browser

    Jeff_Mc

      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/w whelp.htm?&accessible=true under the Forms Service API Quick Starts, but am unable to return the PDF as noted in the code.  Any ideas?  Thanks

        • 1. Re: Return PDF from Browser
          pguerett Level 6

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

           

          Paul

          • 2. Re: Return PDF from Browser
            Jeff_Mc Level 1

            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

            • 3. Re: Return PDF from Browser
              HowardTreisman Level 1

              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

              • 4. Re: Return PDF from Browser
                Jeff_Mc Level 1

                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

                • 5. Re: Return PDF from Browser
                  Jeff_Mc Level 1

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