Hi Does anyone know of a fix for the MIME type problem in IE5/6 for serving up PDF in a browser via Cocoon & PDF?
-------------------------------------------------------- See post from 2000-09-21: List: xml-cocoon-users Subject: RE: Internet Explorer & PDF (via Cocoon, FOP) From: "Berman, Andrew" <[EMAIL PROTECTED]> Date: 2000-09-21 16:06:28 [Download message RAW] That's not really a good solution though. I tried it and it does work by bringing up a prompt to save or open the file. However, what are you going to do, remotely unregister someone's pdf.ocx? No way. The problem is a MIME type problem and not something with the ActiveX control. The ActiveX is fine, it is IE 5.5 that does not use the MIME type, but rather looks only at the extension of the file that is being served. You can test it out by having Cocoon serve up a .doc file and see what IE does. It doesn't care that it is really a PDF, it thinks it is a Word Document because of the doc extension. I am currently working with Microsoft on the problem. They are researching the problem and hopefully they will have a solution soon. Cross your fingers. Andrew Berman iFinance.com Senior Web Developer -----Original Message----- From: Davanum Srinivas [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 21, 2000 11:53 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: Internet Explorer & PDF (via Cocoon, FOP) Russ, Thanks for ur Solution. But it does not work with IE5.5. After some research found that if you unregister the ActiveX version of the Acrobat Plugin, Everything works exactly like Netscape..... The steps are: 1. Find PDF.OCX, it's usually in "C:\Program Files\Adobe\Acrobat 4.0\Reader\ActiveX" directory. 2. Unregister this ActiveX control using "regsvr32 pdf.ocx /u" So the problem was not in mime-type detection, but in adobe's activex plugin implementation. Thanks, dims --- Russ White <[EMAIL PROTECTED]> wrote: >The problem (on explorer anyway) is the when ie sees a url that ends with >.xml it assumes text/xml mime type. > >The following servlet fixes the fop pdf problem on explorer 5.x and >netscape. > >to use it simple map it with a name like "/pdf" > >the invoke it like this /pdf?doc=documentName (no .xml extension here!) > >the servlet then looks for a url documentName.xml to grab and return to the >client. > >G'day! >Russ > >Servlet code follows: > > > > -----Original Message----- > > From: Davanum Srinivas [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, September 21, 2000 9:11 AM > > To: [EMAIL PROTECTED] > > Subject: Internet Explorer & PDF (via Cocoon, FOP) > > > > > > Hi all, > > > > Am unable to view PDF's under IE-5.5. The following "trick" works > > under IE-5.01 but fails under > > IE-5.5. Basically Internet Explorer starts to open the page but > > never starts the Acroreader > > plug-in. Though i can Right mouse click, save it as a PDF and > > view it without problem. > > > > Any insights? > > > > Thanks, > > dims > > > > ------------------------------------------------------ > > instead of > > http://host:port/cocoon/samples/fo/test-fo.xml > > try this ( "?" after the link) > > http://host:port/cocoon/samples/fo/test-fo.xml? > > > > Jimmy Orendt > > > > -----Ursprungliche Nachricht----- > > Von: Doug Serres [mailto:[EMAIL PROTECTED]] > > Gesendet am: Dienstag, 21. Marz 2000 19:53 > > An: Cocoon Users > > Betreff: Internet Explorer & PDF (via Cocoon, FOP) > > > > > > When I try to run the > > http://host:port/cocoon/samples/fo/test-fo.xml example > > Internet Explorer starts to open the page but never starts the Acroreader > > plug-in. Netscape opens the plug-in ad displays the page just fine. > > > > > > Has anyone else seen this behaviour? > > > > > > I.E. 5.01 > > Windows 95b > > Acroreader 4.05 __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] [Attachment #3 (text/html)] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12"> <TITLE>RE: Internet Explorer & PDF (via Cocoon, FOP)</TITLE> </HEAD> <BODY> <P><FONT SIZE=2>That's not really a good solution though. I tried it and it does work by bringing up a prompt to save or open the file. However, what are you going to do, remotely unregister someone's pdf.ocx? No way. The problem is a MIME type problem and not something with the ActiveX control. The ActiveX is fine, it is IE 5.5 that does not use the MIME type, but rather looks only at the extension of the file that is being served. You can test it out by having Cocoon serve up a .doc file and see what IE does. It doesn't care that it is really a PDF, it thinks it is a Word Document because of the doc extension.</FONT></P> <P><FONT SIZE=2>I am currently working with Microsoft on the problem. They are researching the problem and hopefully they will have a solution soon. Cross your fingers.</FONT></P> <P><FONT SIZE=2>Andrew Berman</FONT> <BR><FONT SIZE=2>iFinance.com</FONT> <BR><FONT SIZE=2>Senior Web Developer</FONT> </P> <P><FONT SIZE=2>-----Original Message-----</FONT> <BR><FONT SIZE=2>From: Davanum Srinivas [<A HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]</FONT> <BR><FONT SIZE=2>Sent: Thursday, September 21, 2000 11:53 AM</FONT> <BR><FONT SIZE=2>To: [EMAIL PROTECTED]</FONT> <BR><FONT SIZE=2>Cc: [EMAIL PROTECTED]</FONT> <BR><FONT SIZE=2>Subject: RE: Internet Explorer & PDF (via Cocoon, FOP)</FONT> </P> <BR> <P><FONT SIZE=2>Russ,</FONT> <BR><FONT SIZE=2>Thanks for ur Solution. But it does not work with IE5.5. After some research found that if you</FONT> <BR><FONT SIZE=2>unregister the ActiveX version of the Acrobat Plugin, Everything works exactly like Netscape.....</FONT> </P> <P><FONT SIZE=2>The steps are:</FONT> <BR><FONT SIZE=2>1. Find PDF.OCX, it's usually in "C:\Program Files\Adobe\Acrobat 4.0\Reader\ActiveX" directory.</FONT> <BR><FONT SIZE=2>2. Unregister this ActiveX control using "regsvr32 pdf.ocx /u"</FONT> </P> <P><FONT SIZE=2>So the problem was not in mime-type detection, but in adobe's activex plugin implementation.</FONT> </P> <P><FONT SIZE=2>Thanks,</FONT> <BR><FONT SIZE=2>dims</FONT> <BR><FONT SIZE=2>--- Russ White <[EMAIL PROTECTED]> wrote:</FONT> <BR><FONT SIZE=2>> The problem (on explorer anyway) is the when ie sees a url that ends with</FONT> <BR><FONT SIZE=2>> .xml it assumes text/xml mime type.</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> The following servlet fixes the fop pdf problem on explorer 5.x and</FONT> <BR><FONT SIZE=2>> netscape.</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> to use it simple map it with a name like "/pdf"</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> the invoke it like this /pdf?doc=documentName (no .xml extension here!)</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> the servlet then looks for a url documentName.xml to grab and return to the</FONT> <BR><FONT SIZE=2>> client.</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> G'day!</FONT> <BR><FONT SIZE=2>> Russ</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> Servlet code follows:</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> > -----Original Message-----</FONT> <BR><FONT SIZE=2>> > From: Davanum Srinivas [<A HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]</FONT> <BR><FONT SIZE=2>> > Sent: Thursday, September 21, 2000 9:11 AM</FONT> <BR><FONT SIZE=2>> > To: [EMAIL PROTECTED]</FONT> <BR><FONT SIZE=2>> > Subject: Internet Explorer & PDF (via Cocoon, FOP)</FONT> <BR><FONT SIZE=2>> ></FONT> <BR><FONT SIZE=2>> ></FONT> <BR><FONT SIZE=2>> > Hi all,</FONT> <BR><FONT SIZE=2>> ></FONT> <BR><FONT SIZE=2>> > Am unable to view PDF's under IE-5.5. The following "trick" works</FONT> <BR><FONT SIZE=2>> > under IE-5.01 but fails under</FONT> <BR><FONT SIZE=2>> > IE-5.5. Basically Internet Explorer starts to open the page but</FONT> <BR><FONT SIZE=2>> > never starts the Acroreader</FONT> <BR><FONT SIZE=2>> > plug-in. Though i can Right mouse click, save it as a PDF and</FONT> <BR><FONT SIZE=2>> > view it without problem.</FONT> <BR><FONT SIZE=2>> ></FONT> <BR><FONT SIZE=2>> > Any insights?</FONT> <BR><FONT SIZE=2>> ></FONT> <BR><FONT SIZE=2>> > Thanks,</FONT> <BR><FONT SIZE=2>> > dims</FONT> <BR><FONT SIZE=2>> ></FONT> <BR><FONT SIZE=2>> > ------------------------------------------------------</FONT> <BR><FONT SIZE=2>> > instead of</FONT> <BR><FONT SIZE=2>> > <A HREF="http://host:port/cocoon/samples/fo/test-fo.xml" TARGET="_blank">http://host:port/cocoon/samples/fo/test-fo.xml</A></FONT> <BR><FONT SIZE=2>> > try this ( "?" after the link)</FONT> <BR><FONT SIZE=2>> > <A HREF="http://host:port/cocoon/samples/fo/test-fo.xml" TARGET="_blank">http://host:port/cocoon/samples/fo/test-fo.xml</A>?</FONT> <BR><FONT SIZE=2>> ></FONT> <BR><FONT SIZE=2>> > Jimmy Orendt</FONT> <BR><FONT SIZE=2>> ></FONT> <BR><FONT SIZE=2>> > -----Ursprungliche Nachricht-----</FONT> <BR><FONT SIZE=2>> > Von: Doug Serres [<A HREF="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]</A>]</FONT> <BR><FONT SIZE=2>> > Gesendet am: Dienstag, 21. Marz 2000 19:53</FONT> <BR><FONT SIZE=2>> > An: Cocoon Users</FONT> <BR><FONT SIZE=2>> > Betreff: Internet Explorer & PD _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>