You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Amit <ak...@uhc.com> on 2001/09/25 17:02:29 UTC
IE6
Hi all,
I finally got all my stuff working in netscape but not in IE6.
In IE6 there just a blank page. No errors nothing. I am on WInNT and
using Acrobat reader5
Here is my code:
public void makePDF(String xmlFile, String xslFile,
HttpServletResponse response) throws
ServletException {
java.io.Reader reader;
Writer writer = new StringWriter();
try {
ByteArrayOutputStream out = new ByteArrayOutputStream();
XSLTransform.transform(xmlFile,
xslFile, writer);
writer.flush();
writer.close();
reader = new StringReader(writer.toString());
Driver driver = new Driver(new InputSource(reader), out);
driver.setRenderer(Driver.RENDER_PDF);
driver.run();
byte[] content = out.toByteArray();
response.setContentType("application/pdf");
response.setContentLength(content.length);
response.getOutputStream().write(content);
response.getOutputStream().flush();
} catch (Exception ex) {
throw new ServletException(ex);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: IE6
Posted by Carmelo Montanez <ca...@nist.gov>.
Had you tried using the Acrobat plug in. You need to move it to the
"Program Files/Internet Explorer/PlugIns"
I believe the plug in name is "EWH 32" (someone please correct
me if I am wrong). and its under "Program Files/Acrobat/Reader/Plug Ins"
(or something along those lines.
Greetings,
Carmelo
----- Original Message -----
From: "Amit" <ak...@uhc.com>
To: <fo...@xml.apache.org>
Sent: Tuesday, September 25, 2001 11:02 AM
Subject: IE6
> Hi all,
> I finally got all my stuff working in netscape but not in IE6.
> In IE6 there just a blank page. No errors nothing. I am on WInNT and
> using Acrobat reader5
> Here is my code:
>
> public void makePDF(String xmlFile, String xslFile,
> HttpServletResponse response) throws
> ServletException {
>
> java.io.Reader reader;
> Writer writer = new StringWriter();
>
> try {
>
> ByteArrayOutputStream out = new ByteArrayOutputStream();
> XSLTransform.transform(xmlFile,
> xslFile, writer);
>
> writer.flush();
> writer.close();
>
> reader = new StringReader(writer.toString());
>
> Driver driver = new Driver(new InputSource(reader), out);
> driver.setRenderer(Driver.RENDER_PDF);
> driver.run();
> byte[] content = out.toByteArray();
> response.setContentType("application/pdf");
> response.setContentLength(content.length);
> response.getOutputStream().write(content);
> response.getOutputStream().flush();
>
> } catch (Exception ex) {
> throw new ServletException(ex);
> }
>
>
> }
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: IE6
Posted by Amit <ak...@uhc.com>.
I finally got everything working in IE and Netscape ..
thanks to all who helped out.
Amit wrote:
> Hi all,
> I finally got all my stuff working in netscape but not in IE6.
> In IE6 there just a blank page. No errors nothing. I am on WInNT and
> using Acrobat reader5
> Here is my code:
>
> public void makePDF(String xmlFile, String xslFile,
> HttpServletResponse response) throws
> ServletException {
>
> java.io.Reader reader;
> Writer writer = new StringWriter();
>
> try {
>
> ByteArrayOutputStream out = new ByteArrayOutputStream();
> XSLTransform.transform(xmlFile,
> xslFile, writer);
>
> writer.flush();
> writer.close();
>
> reader = new StringReader(writer.toString());
>
> Driver driver = new Driver(new InputSource(reader), out);
> driver.setRenderer(Driver.RENDER_PDF);
> driver.run();
> byte[] content = out.toByteArray();
> response.setContentType("application/pdf");
> response.setContentLength(content.length);
> response.getOutputStream().write(content);
> response.getOutputStream().flush();
>
> } catch (Exception ex) {
> throw new ServletException(ex);
> }
>
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org