Retrieving PDF file

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Retrieving PDF file

jbender
I am having trouble retrieving the form PDF after the user submits the form.

In my form I have a Send button and a PDF button.



When I click on the PDF button, a new tab opens with the PDF file. The URL that opens is of this format http://<hostname>/orbeon/fr/service/Template/CustomerServiceRequest/pdf/e49facb3f59844c982325bfc557f2508f91f2b8b/0dd19ce09f727a1736fa16a5b915ab91a36759ff.pdf

When I copy this URL into another browser, I get the error message:
<error>
     <title>
         Session has expired. Unable to process incoming request.
     </title>
</error>

I understand that the PDF is not available outside the current user session. My question is:

How do I make the PDF available outside of the user session?

When the user submits the form, I have a requirement that another user who signs in through another server, be able to view the PDF.

In the URL above, after the /pdf/, I see that it uses the document ID (e49fa...) but I don't know what the second UUID is (0dd19ce...). Even if I knew what that number was, I'm not sure I would be able to get around the session ID requirement.

Can I force Orbeon to save it to the database (SQL Server)? If I could force it to be saved, then I could write a retrieval service to pull it out of the database.

Am I using the correct approach or is there another recommended way to retrieve the PDF after the form is submitted?

Any help would be appreciated.

I'm using Orbeon Forms 4.8.1.201502021959 PE.

Thanks,
John