Hello,
I'm not sure but it should be a IE bug.
I saw you attached jpeg: the url contains many parameters. Can you add
another one? Try to add, at the end, &dummy=dummy.pdf. It's a trick to
"force" IE to consider the page as a pdf.
More info (at the end):
http://fhtino.blogspot.com/2006/11/how-to-show-or-download-pdf-file-from.html
Let us know if it solved the problem.
Fabrizio
On Thu, Apr 10, 2008 at 8:54 AM, Parameswaran M <[EMAIL PROTECTED]>
wrote:
> Hi,
>
>
>
> We have to dynamically generate PDF content in our web application, and
> display it inline in the browser.
>
> For that, we have used the iText PDF library.
>
>
>
> In the application, I generate PDF content, and then write it to the
> Response outputstream using the following code:
>
>
>
> // Set the response type for printing
>
> response.setContentType("application/pdf");
>
> response.setHeader("Cache-Control", "no-cache");
>
>
>
> // Content Disposition is used to provide the Filename of the output
>
> response.setHeader("Content-disposition",
>
> "inline; filename=\"" + l_strType + ".pdf\"");
>
>
>
>
>
> This is working fine in Mozilla Firefox.
>
> But this is not working in Internet explorer.
>
>
>
> I tried to write the PDF content to a File. The PDF was generated
> correctly.
>
> But i was unable to display the PDF in the browser. I got the error
> message that: Internet explorer cannot display the web page.
>
>
>
> But the acrobat reader process is actually invoked, and I can see that
> through the task manager.
>
>
>
> The next step was to view the PDF directly from the File.
>
> We wrote a sample JSP which display a JSP directly from a file, using the
> same response settings. But that worked.
>
> Using the sample JSP, we are able to view the File in IE.
>
>
>
> But using the same session, if I try to hit the PDF file again in a new
> tab or window, it is not generating.
>
>
>
> The Acrobat Reader application was running in the task manager.
>
>
>
> I closed the first tab, killed all acrobat reader processes running in the
> task manager application, and then hit the page again.
>
> IE displayed as "Page cannot be displayed" as usual. But actually the
> Acrobat Reader application was invoked, and that can be seen using the task
> manager.
>
>
>
> We also tested using IE 6, IE 7, Adobe Reader 7, and Adobe Reader 8, but
> nothing seems to be working.
>
>
>
> Please help.
>
>
>
> Thanks,
>
> Parameswaran.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Do you like iText?
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Or leave a tip: https://tipit.to/itexttipjar
>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar