Hi, You need to use ResourceLink because you need "Content-Disposition: Inline" response header to tell the browser to *try* to render the pdf. With DownloadLink it will be "Content-Disposition: Download" and the browser will popup a confirm dialog to the user asking her where to store the file.
But to work the browser needs to know how to render PDFs (either out of the box, or with a plugin). If there is no such support then the browser will offer to download the file. Martin Grigorov Wicket Training and Consulting On Thu, Jun 5, 2014 at 10:02 AM, rsi610 <rahul.i...@lntinfotech.com> wrote: > I am trying to achieve embedding pdf in a web page using Wicket.I am stuck > deciding whether to use Downloadlink or resourceLink .Can someone please > explain me the difference and also help me in embedding the web page ? > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/How-to-Embed-PDF-in-a-Web-Page-tp1853387p4666139.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >