download PDF - construct the URL

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

download PDF - construct the URL

WillemV
Hi,

A question about downloading the form as a PDF. We are using the orbeon proxy portlet within Liferay and it generates a URL which leads to the following call from the proxy portlet to orbeon:

http://localhost:8081/orbeon/fr/service/<appname>/<formname>/pdf/10/<uuid>.pdf

Now we'd like to invoke this URL on a different page, outside the scope of the orbeon proxy portlet. The question is: can it be done? Of course at that point we don't have a uuid - is there a way to bypass that?

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

Re: download PDF - construct the URL

Erik Bruchez
Administrator
Willem,

The UUID is needed when the PDF button is used on the edit page,
because the PDF is produced based on the data in the form being
currently edited.

If you use the PDF button on the summary page, another link is used,
of the form (following your syntax):

http://localhost:8080/orbeon/fr/<appname>/<formname>/pdf/<documentid>?fr-language=en

This retrieves the saved version of the form data first. You should be
able to use that format instead.

-Erik

On Thu, Dec 20, 2012 at 4:11 AM, WillemV <[hidden email]> wrote:

> Hi,
>
> A question about downloading the form as a PDF. We are using the orbeon
> proxy portlet within Liferay and it generates a URL which leads to the
> following call from the proxy portlet to orbeon:
>
> http://localhost:8081/orbeon/fr/service/<appname>/<formname>/pdf/10/<uuid>.pdf
>
> Now we'd like to invoke this URL on a different page, outside the scope of
> the orbeon proxy portlet. The question is: can it be done? Of course at that
> point we don't have a uuid - is there a way to bypass that?
>
> Thanks,
> Willem
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/download-PDF-construct-the-URL-tp4656142.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: download PDF - construct the URL

ajw625
Hi Erik,

The URL you've recommended is in the context of the Form Runner application. Is there a REST API URL to download the PDF?
Reply | Threaded
Open this post in threaded view
|

Re: download PDF - construct the URL

bruno.buzzi
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: download PDF - construct the URL

ajw625
Thanks, Bruno. We have written a Java client API for accessing the REST services which is configured with a base/context URL. We can special case this one with a different context. But I wanted to know if there was a URL under the REST service context for the PDF.
Reply | Threaded
Open this post in threaded view
|

Re: download PDF - construct the URL

Erik Bruchez
Administrator
What do you call the "REST service context for the PDF"? Do you mean under /fr/service? If so, currently not, the only URL is under /fr without /service.

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: download PDF - construct the URL

ajw625
Thanks, Erik. Yes I mean under /fr/service.