How to download pdf of saved form from other web aaplication

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to download pdf of saved form from other web aaplication

ashok@orb
Hi

I want to download pdf of saved form using inside java application where  i will call http service with parameter of form id and name.

However i tried to do so but i found for every such pdf download request for orbeon form it internally creates one unique id for pdf and genreate url and it happened only if i click on pdf button in orbeon webapp.

My requirement is to download the form and save into my web application database so i already have details
like http service url of orbeon webapp, my application name, form name, document id
as given below:

http://172.51.21.27:8080/orbeon-war/fr/service/paripalapp/empty-form/pdf/1524d97f69c4360cbdaca4f61db84087eb2de70d/dynamicid.pdf

here only part dynamicid.pdf is not with me as it get generated only when i click pdf button of form.

please let me know how i handle this scenario.


Thanks,
Ashok
Reply | Threaded
Open this post in threaded view
|

Re: How to download pdf of saved form from other web aaplication

Alessandro  Vernet
Administrator
Hi Ashok,

Are you saying that you'd like to have some of your custom code get a hold of the PDF produced by Orbeon Forms when the form is submitted by end users? If that is the case, then I'd recommend you use the send() action, and have it send a PDF, which is supported since 2016.2, which was just released yesterday (!). For more on this see the description for the send() action on:

http://doc.orbeon.com/form-runner/advanced/buttons-and-processes/actions-form-runner.html

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet