xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jess Holle and Wendy Vidlak" <jessho...@mediaone.net>
Subject RE: Newbie - FOP PDF not opening in IE5
Date Fri, 13 Oct 2000 11:13:46 GMT
Would that this only occurs in IE5.5!

This happens in IE5.0 as well!

Your explanation is pretty much what I understood (barring the IE5.5
security bit).  What about "headers that make it look as though only a pdf
FILE is returned", however?  What do you mean by this and can one do just
this and not have the source end in .pdf?

If not, how can one possibly have a single servlet or JSP page that
dynamically decides on the response format (e.g. based on the xsl:output tag
in a dynamically chosen XSLT stylesheet)???

-----Original Message-----
From: Harry Evans [mailto:hevans@elite.com]
Sent: Wednesday, October 11, 2000 6:36 PM
To: 'fop-dev@xml.apache.org'
Subject: RE: Newbie - FOP PDF not opening in IE5

In general with PDFs and IE5, I have found that the pdf must be requested
from a source that has a .pdf extension, and the response from the server
must have headers that make it look as though only a pdf FILE is returned.
IE5 doesn't seem to respect the Content-type header in some cases, and
simply looks at the file extension.  I read something on the MS site about a
"new security model" in IE 5.5 that causes this symptom.  That is the only
explanation for this behaviour I have seen so far.

Hope this helps.

Harry Evans

-----Original Message-----
From: Jess Holle and Wendy Vidlak [mailto:jessholle@mediaone.net]
Sent: Wednesday, October 11, 2000 4:12 PM
To: fop-dev@xml.apache.org
Subject: RE: Newbie - FOP PDF not opening in IE5

Same question in a different form.

I used XSLT and FOP to dynamically generate PDFs from dynamically generated
XML on the server, i.e. the usual thing.  I the HTTP response Writer (in
Java) to FOP after setting the Content-Type response header to
"application/pdf".  Netscape opens this as a PDF with no problem.  Explorer
shows the PDF as text!

When I save this text directly from explorer it wraps it with <html> and
<body> tags as if it believes it to be HTML.  If I view source, however, it
is just the PDF text and saving it results in a valid PDF file that can be
opened via Acrobat Reader without any errors!

I checked the Adobe site and found similar but different problems listed for
Acrobat Reader and Internet Explorer for dynamically generated PDFs.

Anyone know the magic trick?  [This is all using IE 5.0]

Jess Holle

-----Original Message-----
From: COFFMAN Steven [mailto:SCoffman@CBSINC.com]
Sent: Wednesday, October 11, 2000 12:02 PM
To: 'fop-dev@xml.apache.org'
Subject: RE: Newbie - FOP PDF not opening in IE5

I dunno if it's because I'm using the bleeding edge CVS, but I don't have a

Try these:


If that doesn't work, let us know, and I'll figure out when we fixed it. :)
-----Original Message-----
From: Scott Jones [mailto:scott@izio.com]
Sent: Wednesday, October 11, 2000 12:58 PM
To: fop-dev@xml.apache.org
Subject: Newbie - FOP PDF not opening in IE5


I just got everything set up yesterday for Cocoon and FOP running on Tomcat
(on Linux), and it is all working very nicely -- Congratulations to everyone
for building such a cool tool!

I built a little test XML file, and a little XSL file that uses FOP to
generate the PDF.  When I browse the XML file in Netscape, it opens directly
into Adobe Acrobat, and looks perfect.  However, when I browse the file in
IE 5, it tries to open it as an XML file, and shows nothing...  (it can save
a link to the XML file appropriately as a PDF).  Is there some setting on my
server that I need to change in order to make IE 5 recognize that it is a
PDF file?

Thanks for any suggestions that anyone might have.


Scott Jones

View raw message