You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Savino, Matt C" <Ma...@questdiagnostics.com> on 2002/03/07 19:51:09 UTC

RE: IE reloads the PDF document generated from servlet multiple t imes (2 times!)

This is a known issue. There seem to be several approaches, which may depend
on your particular situation. There's a full discusssion of this on the
fop-dev list under the subject 'FO -> PDF works with Netscape, not with IE'
which has the code for my solution (you can find it in the archives if not
subscribed). I believe this is also going to be in the FAQ soon. 

Please let me know if you have more questions.

-Matt



> -----Original Message-----
> From: Sharan, Dharmendra [mailto:Dharmendra.Sharan@gs.com]
> Sent: Thursday, March 07, 2002 9:41 AM
> To: fop-user@xml.apache.org
> Subject: IE reloads the PDF document generated from servlet multiple
> times (2 times!)
> 
> 
> Hi FOP Users,
> 
>    Has anyone come across the problem of Servlet getting 
> called multiple
> times by IE (ver 5.5)
> 
>    I use the following to render PDF using an input source, 
> however I see in
> log that that IE calls my servlet 2 times!
> 
>    I use the following code as in the example for embedding 
> fop in servlet -
> --------------------------------------------------
>             response.setContentType("application/pdf");
>             Driver driver = new Driver(inputSource,
> response.getOutputStream());
>             driver.setRenderer(Driver.RENDER_PDF);
>             driver.run();
> --------------------------------------------------
> 
>     Aparently I noticed that after the first time my servlet is done
> processing the XSLT, IE 5.5 launches the PDF pluggin!,
>     The PDF pluggin again repeats the whole XSLT transform, 
> and only then it
> display the PDF output.
> 
>     Anybody has similar experience with IE 5.5 ? any 
> ideas/suggestions are
> appreciated.
> 
>     Thanks!,
> 
>     Dharmendra
>