You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Martin Kuypers <m....@wanadoo.nl> on 2002/05/20 13:28:56 UTC

Re: problem diplaying on the fly generated PDF files within IE

I have the following problem

I generate PDF files on the fly using XSL FO togehter with a Taglibrary
When i generate the PDF it shows up just fine within Netscape and within
IE6.0 it shows it in an ascii form instead of Launching Acrobat Reader

Acrobat Reader is installed correctly and it shows not dynamically generated
PDF filesnicely within IE6.0
I read that i had to fake IE with adding ?fakeIE=test.pdf at the end of the
call, but this doesn't seem to work eather

I included a file as a little example

The call looks like fo_2_pdf1.jsp?fakeIE=test.pdf

Any suggestions would help

Thanks
Martin Kuypers

<%@taglib uri="/WEB-INF/fop.tld" prefix="fop" %>

<%response.setContentType("application/pdf");%>

<%String foFile = request.getParameter("fo");%>

<fop:fo2pdf>

<?xml version="1.0"?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

<fo:layout-master-set>

<fo:simple-page-master master-name="simple"

page-height="11in"

page-width="8.5in"

margin-top="1in"

margin-bottom="1in"

margin-left="1in"

margin-right="1in">

<fo:region-body/>

</fo:simple-page-master>

</fo:layout-master-set>


<fo:page-sequence master-name="simple">

<fo:flow flow-name="xsl-region-body" text-align="center">

<fo:block font-size="24pt">

Welcome to XSL FO!

</fo:block>

<fo:block font-size="18pt" color="blue">

Welcome, Welcome, Welcome

</fo:block>

</fo:flow>

</fo:page-sequence>

</fo:root>

</fop:fo2pdf>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: problem diplaying on the fly generated PDF files within IE

Posted by Martin Kuypers <m....@wanadoo.nl>.
Thanks Adam

I will see if i can find something
I am getting the last things together of a complete struts based environment
and need to figure this out

martin
----- Original Message -----
From: "Adam Hardy" <ad...@cyberspaceroad.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Monday, May 20, 2002 03:27 PM
Subject: Re: problem diplaying on the fly generated PDF files within IE


> I've heard of a bug with IE and PDFs - can't remember quite what it is
> but you might want to search on Microsoft's MSDN site. It's got
> something to do with the content type description headers.
>
> Adam
>
> Martin Kuypers wrote:
>
> >I have the following problem
> >
> >I generate PDF files on the fly using XSL FO togehter with a Taglibrary
> >When i generate the PDF it shows up just fine within Netscape and within
> >IE6.0 it shows it in an ascii form instead of Launching Acrobat Reader
> >
> >Acrobat Reader is installed correctly and it shows not dynamically
generated
> >PDF filesnicely within IE6.0
> >I read that i had to fake IE with adding ?fakeIE=test.pdf at the end of
the
> >call, but this doesn't seem to work eather
> >
> >I included a file as a little example
> >
> >The call looks like fo_2_pdf1.jsp?fakeIE=test.pdf
> >
> >Any suggestions would help
> >
> >Thanks
> >Martin Kuypers
> >
> ><%@taglib uri="/WEB-INF/fop.tld" prefix="fop" %>
> >
> ><%response.setContentType("application/pdf");%>
> >
> ><%String foFile = request.getParameter("fo");%>
> >
> ><fop:fo2pdf>
> >
> ><?xml version="1.0"?>
> >
> ><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> >
> ><fo:layout-master-set>
> >
> ><fo:simple-page-master master-name="simple"
> >
> >page-height="11in"
> >
> >page-width="8.5in"
> >
> >margin-top="1in"
> >
> >margin-bottom="1in"
> >
> >margin-left="1in"
> >
> >margin-right="1in">
> >
> ><fo:region-body/>
> >
> ></fo:simple-page-master>
> >
> ></fo:layout-master-set>
> >
> >
> ><fo:page-sequence master-name="simple">
> >
> ><fo:flow flow-name="xsl-region-body" text-align="center">
> >
> ><fo:block font-size="24pt">
> >
> >Welcome to XSL FO!
> >
> ></fo:block>
> >
> ><fo:block font-size="18pt" color="blue">
> >
> >Welcome, Welcome, Welcome
> >
> ></fo:block>
> >
> ></fo:flow>
> >
> ></fo:page-sequence>
> >
> ></fo:root>
> >
> ></fop:fo2pdf>
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> >For additional commands, e-mail:
<ma...@jakarta.apache.org>
> >
> >
> >
> >
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: problem diplaying on the fly generated PDF files within IE

Posted by Adam Hardy <ad...@cyberspaceroad.com>.
I've heard of a bug with IE and PDFs - can't remember quite what it is 
but you might want to search on Microsoft's MSDN site. It's got 
something to do with the content type description headers.

Adam

Martin Kuypers wrote:

>I have the following problem
>
>I generate PDF files on the fly using XSL FO togehter with a Taglibrary
>When i generate the PDF it shows up just fine within Netscape and within
>IE6.0 it shows it in an ascii form instead of Launching Acrobat Reader
>
>Acrobat Reader is installed correctly and it shows not dynamically generated
>PDF filesnicely within IE6.0
>I read that i had to fake IE with adding ?fakeIE=test.pdf at the end of the
>call, but this doesn't seem to work eather
>
>I included a file as a little example
>
>The call looks like fo_2_pdf1.jsp?fakeIE=test.pdf
>
>Any suggestions would help
>
>Thanks
>Martin Kuypers
>
><%@taglib uri="/WEB-INF/fop.tld" prefix="fop" %>
>
><%response.setContentType("application/pdf");%>
>
><%String foFile = request.getParameter("fo");%>
>
><fop:fo2pdf>
>
><?xml version="1.0"?>
>
><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
>
><fo:layout-master-set>
>
><fo:simple-page-master master-name="simple"
>
>page-height="11in"
>
>page-width="8.5in"
>
>margin-top="1in"
>
>margin-bottom="1in"
>
>margin-left="1in"
>
>margin-right="1in">
>
><fo:region-body/>
>
></fo:simple-page-master>
>
></fo:layout-master-set>
>
>
><fo:page-sequence master-name="simple">
>
><fo:flow flow-name="xsl-region-body" text-align="center">
>
><fo:block font-size="24pt">
>
>Welcome to XSL FO!
>
></fo:block>
>
><fo:block font-size="18pt" color="blue">
>
>Welcome, Welcome, Welcome
>
></fo:block>
>
></fo:flow>
>
></fo:page-sequence>
>
></fo:root>
>
></fop:fo2pdf>
>
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>  
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>