Ty all for answering.

I did check the Content-Type the browser receives, and it IS application/pdf. 
Looking at Content-Length, the "faulty" PDF has in my example a length of 3969 
bytes, however, changing a "A" to a "B" in a name in the source XML causes the 
length to increase to 3974 bytes. AND makes the PDF appears in Acrobat reader.

I have no clue really to what is going on, maybe I should try to upgrade the 
FOP version and see if it helps.

Regards
Johann M

>>> [EMAIL PROTECTED] 2003-07-29 19:27 >>>
Johann Mattsson wrote:
> On a weblogic server we transform XML documents to FO via XSLT, and render it
> to PDF, all within COCOON. The PDF is then sent to the browser where Acrobat
> reader opens. However, occasionaly some problem obviousley occurs, resulting
> in no error messages, but the browser displays the PDF code instead of
> starting Acrobat reader.
> 
> If I manipulate the "faulty" source XML slightly, for example change a digit
> or something (pure XML, it isnt the FO code or anything), the browser nicely
> opens the resulting PDF document...

It seems the browser can't interpret the content type and falls back
to text/plain. Changing the XML source causes Cocoon to regenerate and
resend the PDF instead of telling the browser that nothing changed,
causing it to use the cached content (including the wrong MIME type).

I've seen this kind of behaviour with other browsers and content types
too. I have no idea whether these are strange network glitches, server
hickups or problems with the Windows TCP stack. If you have a
reasonably high chance to reproduce it, monior the network traffic both
from some other machine (preferebly not Windows) and the machine with
the browser, and check whether the "content-type: application/pdf"
header comes unmangled over the connection.

J.Pietschmann



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to