You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Lance Java <la...@googlemail.com> on 2017/03/07 09:29:12 UTC

Re: How to open a pdf file on click of an action link

You'll need to set:
response.setHeader("Content-Disposition", "attachment; filename=" +
fileName);

See StreamResponse usage in PDFLink.onPdf() here
http://t5stitch-lazan.rhcloud.com/pdflinkdemo

On 7 Mar 2017 08:47, "Gopi, Sreela" <sr...@atos.net> wrote:

> Hello,
>
>    Can anyone please tell me how to open a pdf file on click of an action
> link in Tapestry?
>
>
> Thank you,
> Sreela Gopi
>
>
>