cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Trafford" <tr...@hotmail.com>
Subject Is there a solution for the IE5/6 PDF (via Cocoon & PDF) problem yet?
Date Thu, 18 Oct 2001 20:02:25 GMT
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" <aberman@ezpricing.com>
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:dims@yahoo.com]
Sent: Thursday, September 21, 2000 11:53 AM
To: cocoon-users@xml.apache.org
Cc: russwyte@earthlink.net
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 <russwyte@earthlink.net> 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:dims@yahoo.com]
> > Sent: Thursday, September 21, 2000 9:11 AM
> > To: cocoon-users@xml.apache.org
> > 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:dserres@netscape.net]
> > 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: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org

[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 &amp; PDF (via Cocoon, FOP)</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>That's not really a good solution though.&nbsp; I tried it

and it does work by bringing up a prompt to save or open the file.&nbsp; 
However, what are you going to do, remotely unregister someone's 
pdf.ocx?&nbsp; No way.&nbsp; The problem is a MIME type problem and not 
something with the ActiveX control.&nbsp; 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.&nbsp; You can test it out by having Cocoon 
serve up a .doc file and see what IE does.&nbsp; 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.&nbsp;

They are researching the problem and hopefully they will have a solution 
soon.&nbsp; 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:dims@yahoo.com">mailto:dims@yahoo.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Thursday, September 21, 2000 11:53 AM</FONT>
<BR><FONT SIZE=2>To: cocoon-users@xml.apache.org</FONT>
<BR><FONT SIZE=2>Cc: russwyte@earthlink.net</FONT>
<BR><FONT SIZE=2>Subject: RE: Internet Explorer &amp; 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 &quot;C:\Program 
Files\Adobe\Acrobat 4.0\Reader\ActiveX&quot; directory.</FONT>
<BR><FONT SIZE=2>2. Unregister this ActiveX control using &quot;regsvr32 
pdf.ocx /u&quot;</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 &lt;russwyte@earthlink.net&gt; wrote:</FONT>
<BR><FONT SIZE=2>&gt; The problem (on explorer anyway) is the when ie sees
a 
url that ends with</FONT>
<BR><FONT SIZE=2>&gt; .xml it assumes text/xml mime type.</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; The following servlet fixes the fop pdf problem on 
explorer 5.x and</FONT>
<BR><FONT SIZE=2>&gt; netscape.</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; to use it simple map it with a name like 
&quot;/pdf&quot;</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; the invoke it like this /pdf?doc=documentName (no .xml

extension here!)</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; the servlet then looks for a url documentName.xml to

grab and return to the</FONT>
<BR><FONT SIZE=2>&gt; client.</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; G'day!</FONT>
<BR><FONT SIZE=2>&gt; Russ</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Servlet code follows:</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; -----Original Message-----</FONT>
<BR><FONT SIZE=2>&gt; &gt; From: Davanum Srinivas [<A 
HREF="mailto:dims@yahoo.com">mailto:dims@yahoo.com</A>]</FONT>
<BR><FONT SIZE=2>&gt; &gt; Sent: Thursday, September 21, 2000 9:11 AM</FONT>
<BR><FONT SIZE=2>&gt; &gt; To: cocoon-users@xml.apache.org</FONT>
<BR><FONT SIZE=2>&gt; &gt; Subject: Internet Explorer &amp; PDF (via
Cocoon, 
FOP)</FONT>
<BR><FONT SIZE=2>&gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; Hi all,</FONT>
<BR><FONT SIZE=2>&gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; Am unable to view PDF's under IE-5.5. The 
following &quot;trick&quot; works</FONT>
<BR><FONT SIZE=2>&gt; &gt; under IE-5.01 but fails under</FONT>
<BR><FONT SIZE=2>&gt; &gt; IE-5.5. Basically Internet Explorer starts
to 
open the page but</FONT>
<BR><FONT SIZE=2>&gt; &gt; never starts the Acroreader</FONT>
<BR><FONT SIZE=2>&gt; &gt; plug-in. Though i can Right mouse click, save
it 
as a PDF and</FONT>
<BR><FONT SIZE=2>&gt; &gt; view it without problem.</FONT>
<BR><FONT SIZE=2>&gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; Any insights?</FONT>
<BR><FONT SIZE=2>&gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; Thanks,</FONT>
<BR><FONT SIZE=2>&gt; &gt; dims</FONT>
<BR><FONT SIZE=2>&gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; 
------------------------------------------------------</FONT>
<BR><FONT SIZE=2>&gt; &gt; instead of</FONT>
<BR><FONT SIZE=2>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<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>&gt; &gt; try this ( &quot;?&quot; after the
link)</FONT>
<BR><FONT SIZE=2>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<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>&gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; Jimmy Orendt</FONT>
<BR><FONT SIZE=2>&gt; &gt;</FONT>
<BR><FONT SIZE=2>&gt; &gt; -----Ursprungliche Nachricht-----</FONT>
<BR><FONT SIZE=2>&gt; &gt; Von: Doug Serres [<A 
HREF="mailto:dserres@netscape.net">mailto:dserres@netscape.net</A>]</FONT>
<BR><FONT SIZE=2>&gt; &gt; Gesendet am: Dienstag, 21. Marz 2000 19:53</FONT>
<BR><FONT SIZE=2>&gt; &gt; An: Cocoon Users</FONT>
<BR><FONT SIZE=2>&gt; &gt; Betreff: Internet Explorer &amp; 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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message