Yes, the Adobe Reader opens itself. What I'm trying to do is when a user presses a button in a JSP file, it will call another JSP file (which is a controller thing) then that JSP will call the servlet and then open the PDF file in a new browser. What happens now is that it opens the new window but it is blank and then it opens the Adobe Reader.

I will try to study the links you've given me and try to work my way around with it. Thank you.

---------- Forwarded message ----------
From: bruno <[EMAIL PROTECTED]>
Date: Mar 28, 2006 6:44 PM
Subject: Re: [iText-questions] Opening PDF Servlet in New Window
To: Hevn <[EMAIL PROTECTED] >, "[email protected]" <[email protected]>

Hevn wrote:

> Okay. I have successfully opened a new window and load the PDF servlet
> in there using _javascript_. It works very well on Firefox but IE opens
> a new window, then opens Adobe Reader and open the file there. I want
> the window to open the PDF and not Adobe Reader. What should I do?
> Thanks.

Do you mean Adobe Reader opens outside the browser window?
You can avoid this and force the use of the AR plug-in by using the
EMBED tag. See http://itextdocs.lowagie.com/tutorial/general/webapp/
More specifically this JSP file:
http://cvs.sourceforge.net/viewcvs.py/*checkout*/itext/www/tutorial/general/webapp/UserAgent.jsp
br,
Bruno

Reply via email to