Re: Embedding fop in IE..Help!!!

2001-10-15 Thread Rajagopal. V

Hi
Thanks, I did that and it worked.

-Raj

--- Kuehnberger <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I had the same problem:
> 
> For me it worked to change the name of the servlet
> (let's say report to
> report.pdf)
> For outputting I use the function:
> 
>   public void renderFO( Document doc,
> HttpServletResponse
> response,HttpServletRequest request ) throws
> Exception {
> 
> // Create the PDF.
> 
> ByteArrayOutputStream out = new
> ByteArrayOutputStream();
> 
> MessageHandler.setOutputMethod(
> MessageHandler.NONE );
> 
> Driver driver = new Driver();
> driver.setRenderer( Driver.RENDER_PDF );
> 
> driver.addElementMapping(
> "org.apache.fop.fo.StandardElementMapping");
> driver.addElementMapping(
> "org.apache.fop.svg.SVGElementMapping" );
> 
> try {
>   driver.setOutputStream( out );
>   driver.render( doc );
> }
> catch ( Exception ex ) {
>   cat.error(ex);
> }
> finally {
>   try {
> out.close();
>   }
>   catch ( IOException e ) {
>   }
> }
> 
> byte[] content = out.toByteArray();
> response.setContentLength( content.length );
> response.setContentType( "application/pdf" );
> response.addHeader( "Content-Disposition",
> "inline;filename=report.pdf" );
> response.getOutputStream().write( content );
> response.getOutputStream().flush();
>   }
> 
> Just try, for me it works
> 
> Jens
> 
> 
> "Rajagopal. V" schrieb:
> 
> > Hi
> > Im using a JSP to generate this PDF. I am able to
> open
> > other "Static" pdfs.
> > This is what i do, i create a
> bytearrayoutputstream
> > which will hold the output of the render and then
> use
> > a
> >
> >
>
pageContext.getOut().print();
> >
> > and this results in printing binary content on the
> > screen.. I assume this is bcoz IE doesnt recognize
> the
> > content type and print jst prints it on the
> screen,
> > whereas Netscape understands the Content Type and
> > displays it as a PDF.
> > I tried to create a servlet which will generate
> the
> > PDF(using streams to generate the output) and it
> works
> > in IE and Netscape.
> >
> > Now, is it not possible to render a PDF using
> > JSP(especially on IE)?? IS there a way?
> >
> > Thanks
> > Raj
> >
> > --- Amit <[EMAIL PROTECTED]> wrote:
> > > Can you open other pdf files (via a link in a
> html
> > > page) in IE?
> > >
> > >
> > > "Rajagopal. V" wrote:
> > >
> > > > Hi All
> > > > I have an XML file which i combine with a XSL
> to
> > > > generate the FO file and render it. It works
> fine
> > > with
> > > > Netscape but im having a tough time with IE.
> It is
> > > > displaying garbage on teh screen. All i get is
> > > binary
> > > > characters for the PDF File. I have IE 5.5
> Sp1.
> > > and i
> > > > tried all the workarounds. These are the ones
> I
> > > tried
> > > > 1) Changed the name of the file to be .pdf so
> that
> > > IE
> > > > will look at the extension and treat it as PDF
> > > >
> > > > 2) Bloated the file size to be more than 8k so
> > > that
> > > > there is no buffer problem with IE
> > > >
> > > > 3) Downloaded the Fo file generated and ran
> the fo
> > > > command line and it generates the PDF
> properly(as
> > > an
> > > > application). So there is nothing wrong with
> the
> > > FO.
> > > >
> > > > IS there any other way to get a PDF on IE? Im
> not
> > > sure
> > > > why im getting binary content all over the
> screen?
> > > >
> > > > Please HElpp...
> > > >
> > > > TIA
> > > > Raj
> > > >
> > > >
> __
> > > > Do You Yahoo!?
> > > > Make a great connection at Yahoo! Personals.
> > > > http://personals.yahoo.com
> > > >
> > > >
> > >
> >
>
-
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, email:
> > > [EMAIL PROTECTED]
> > >
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, email:
> > > [EMAIL PROTECTED]
> > >
> >
> > __
> > Do You Yahoo!?
> > Make a great connection at Yahoo! Personals.
> > http://personals.yahoo.com
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, email:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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




RE: Embedding fop in IE..Help!!!

2001-10-15 Thread Rajagopal. V

Hi
Infact, i use a taglib to do the PDF Rendition, I have
a library written for generating PDFs and it takes the
Format as an attribute like
 or


And in the taglib,  i use it like
pageContext.getOut().print(bytearrayoutputstream);

IF it is a problem with spaces, I guess Netscape
should also not display this

Cheers
Raj

--- "Shkuro, Yuri" <[EMAIL PROTECTED]> wrote:
> I used JSP to stream out PDF files successfully.
> What may be happenning in your case is that the
> whitespace between <%!%>  <%%> is written to the
> output stream before you start writing the PDF
> content.
> Try calling clearBuffer() on the output stream
> first.
> 
> YS
> 
> -Original Message-
> From: Rajagopal. V [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 15, 2001 2:49 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Embedding fop in IE..Help!!!
> 
> 
> Hi
> Im using a JSP to generate this PDF. I am able to
> open
> other "Static" pdfs.
> This is what i do, i create a bytearrayoutputstream
> which will hold the output of the render and then
> use
> a 
> 
>
pageContext.getOut().print();
> 
> and this results in printing binary content on the
> screen.. I assume this is bcoz IE doesnt recognize
> the
> content type and print jst prints it on the screen,
> whereas Netscape understands the Content Type and
> displays it as a PDF.
> I tried to create a servlet which will generate the
> PDF(using streams to generate the output) and it
> works
> in IE and Netscape.
> 
> Now, is it not possible to render a PDF using
> JSP(especially on IE)?? IS there a way?
> 
> Thanks
> Raj
> 
> --- Amit <[EMAIL PROTECTED]> wrote:
> > Can you open other pdf files (via a link in a html
> > page) in IE?
> > 
> > 
> > "Rajagopal. V" wrote:
> > 
> > > Hi All
> > > I have an XML file which i combine with a XSL to
> > > generate the FO file and render it. It works
> fine
> > with
> > > Netscape but im having a tough time with IE. It
> is
> > > displaying garbage on teh screen. All i get is
> > binary
> > > characters for the PDF File. I have IE 5.5 Sp1.
> > and i
> > > tried all the workarounds. These are the ones I
> > tried
> > > 1) Changed the name of the file to be .pdf so
> that
> > IE
> > > will look at the extension and treat it as PDF
> > >
> > > 2) Bloated the file size to be more than 8k so
> > that
> > > there is no buffer problem with IE
> > >
> > > 3) Downloaded the Fo file generated and ran the
> fo
> > > command line and it generates the PDF
> properly(as
> > an
> > > application). So there is nothing wrong with the
> > FO.
> > >
> > > IS there any other way to get a PDF on IE? Im
> not
> > sure
> > > why im getting binary content all over the
> screen?
> > >
> > > Please HElpp...
> > >
> > > TIA
> > > Raj
> > >
> > >
> __
> > > Do You Yahoo!?
> > > Make a great connection at Yahoo! Personals.
> > > http://personals.yahoo.com
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, email:
> > [EMAIL PROTECTED]
> > 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, email:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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




Re: Embedding fop in IE..Help!!!

2001-10-15 Thread Kuehnberger

Hi,

I had the same problem:

For me it worked to change the name of the servlet (let's say report to
report.pdf)
For outputting I use the function:

  public void renderFO( Document doc, HttpServletResponse
response,HttpServletRequest request ) throws Exception {

// Create the PDF.

ByteArrayOutputStream out = new ByteArrayOutputStream();

MessageHandler.setOutputMethod( MessageHandler.NONE );

Driver driver = new Driver();
driver.setRenderer( Driver.RENDER_PDF );

driver.addElementMapping(
"org.apache.fop.fo.StandardElementMapping");
driver.addElementMapping( "org.apache.fop.svg.SVGElementMapping" );

try {
  driver.setOutputStream( out );
  driver.render( doc );
}
catch ( Exception ex ) {
  cat.error(ex);
}
finally {
  try {
out.close();
  }
  catch ( IOException e ) {
  }
}

byte[] content = out.toByteArray();
response.setContentLength( content.length );
response.setContentType( "application/pdf" );
response.addHeader( "Content-Disposition",
"inline;filename=report.pdf" );
response.getOutputStream().write( content );
response.getOutputStream().flush();
  }

Just try, for me it works

Jens


"Rajagopal. V" schrieb:

> Hi
> Im using a JSP to generate this PDF. I am able to open
> other "Static" pdfs.
> This is what i do, i create a bytearrayoutputstream
> which will hold the output of the render and then use
> a
>
> pageContext.getOut().print();
>
> and this results in printing binary content on the
> screen.. I assume this is bcoz IE doesnt recognize the
> content type and print jst prints it on the screen,
> whereas Netscape understands the Content Type and
> displays it as a PDF.
> I tried to create a servlet which will generate the
> PDF(using streams to generate the output) and it works
> in IE and Netscape.
>
> Now, is it not possible to render a PDF using
> JSP(especially on IE)?? IS there a way?
>
> Thanks
> Raj
>
> --- Amit <[EMAIL PROTECTED]> wrote:
> > Can you open other pdf files (via a link in a html
> > page) in IE?
> >
> >
> > "Rajagopal. V" wrote:
> >
> > > Hi All
> > > I have an XML file which i combine with a XSL to
> > > generate the FO file and render it. It works fine
> > with
> > > Netscape but im having a tough time with IE. It is
> > > displaying garbage on teh screen. All i get is
> > binary
> > > characters for the PDF File. I have IE 5.5 Sp1.
> > and i
> > > tried all the workarounds. These are the ones I
> > tried
> > > 1) Changed the name of the file to be .pdf so that
> > IE
> > > will look at the extension and treat it as PDF
> > >
> > > 2) Bloated the file size to be more than 8k so
> > that
> > > there is no buffer problem with IE
> > >
> > > 3) Downloaded the Fo file generated and ran the fo
> > > command line and it generates the PDF properly(as
> > an
> > > application). So there is nothing wrong with the
> > FO.
> > >
> > > IS there any other way to get a PDF on IE? Im not
> > sure
> > > why im getting binary content all over the screen?
> > >
> > > Please HElpp...
> > >
> > > TIA
> > > Raj
> > >
> > > __
> > > Do You Yahoo!?
> > > Make a great connection at Yahoo! Personals.
> > > http://personals.yahoo.com
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, email:
> > [EMAIL PROTECTED]
> >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, email:
> > [EMAIL PROTECTED]
> >
>
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




RE: Embedding fop in IE..Help!!!

2001-10-15 Thread Shkuro, Yuri

I used JSP to stream out PDF files successfully.
What may be happenning in your case is that the
whitespace between <%!%>  <%%> is written to the
output stream before you start writing the PDF content.
Try calling clearBuffer() on the output stream first.

YS

-Original Message-
From: Rajagopal. V [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 15, 2001 2:49 PM
To: [EMAIL PROTECTED]
Subject: Re: Embedding fop in IE..Help!!!


Hi
Im using a JSP to generate this PDF. I am able to open
other "Static" pdfs.
This is what i do, i create a bytearrayoutputstream
which will hold the output of the render and then use
a 

pageContext.getOut().print();

and this results in printing binary content on the
screen.. I assume this is bcoz IE doesnt recognize the
content type and print jst prints it on the screen,
whereas Netscape understands the Content Type and
displays it as a PDF.
I tried to create a servlet which will generate the
PDF(using streams to generate the output) and it works
in IE and Netscape.

Now, is it not possible to render a PDF using
JSP(especially on IE)?? IS there a way?

Thanks
Raj

--- Amit <[EMAIL PROTECTED]> wrote:
> Can you open other pdf files (via a link in a html
> page) in IE?
> 
> 
> "Rajagopal. V" wrote:
> 
> > Hi All
> > I have an XML file which i combine with a XSL to
> > generate the FO file and render it. It works fine
> with
> > Netscape but im having a tough time with IE. It is
> > displaying garbage on teh screen. All i get is
> binary
> > characters for the PDF File. I have IE 5.5 Sp1.
> and i
> > tried all the workarounds. These are the ones I
> tried
> > 1) Changed the name of the file to be .pdf so that
> IE
> > will look at the extension and treat it as PDF
> >
> > 2) Bloated the file size to be more than 8k so
> that
> > there is no buffer problem with IE
> >
> > 3) Downloaded the Fo file generated and ran the fo
> > command line and it generates the PDF properly(as
> an
> > application). So there is nothing wrong with the
> FO.
> >
> > IS there any other way to get a PDF on IE? Im not
> sure
> > why im getting binary content all over the screen?
> >
> > Please HElpp...
> >
> > TIA
> > Raj
> >
> > __
> > Do You Yahoo!?
> > Make a great connection at Yahoo! Personals.
> > http://personals.yahoo.com
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, email:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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

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




Re: Embedding fop in IE..Help!!!

2001-10-15 Thread Rajagopal. V

Hi
Im using a JSP to generate this PDF. I am able to open
other "Static" pdfs.
This is what i do, i create a bytearrayoutputstream
which will hold the output of the render and then use
a 

pageContext.getOut().print();

and this results in printing binary content on the
screen.. I assume this is bcoz IE doesnt recognize the
content type and print jst prints it on the screen,
whereas Netscape understands the Content Type and
displays it as a PDF.
I tried to create a servlet which will generate the
PDF(using streams to generate the output) and it works
in IE and Netscape.

Now, is it not possible to render a PDF using
JSP(especially on IE)?? IS there a way?

Thanks
Raj

--- Amit <[EMAIL PROTECTED]> wrote:
> Can you open other pdf files (via a link in a html
> page) in IE?
> 
> 
> "Rajagopal. V" wrote:
> 
> > Hi All
> > I have an XML file which i combine with a XSL to
> > generate the FO file and render it. It works fine
> with
> > Netscape but im having a tough time with IE. It is
> > displaying garbage on teh screen. All i get is
> binary
> > characters for the PDF File. I have IE 5.5 Sp1.
> and i
> > tried all the workarounds. These are the ones I
> tried
> > 1) Changed the name of the file to be .pdf so that
> IE
> > will look at the extension and treat it as PDF
> >
> > 2) Bloated the file size to be more than 8k so
> that
> > there is no buffer problem with IE
> >
> > 3) Downloaded the Fo file generated and ran the fo
> > command line and it generates the PDF properly(as
> an
> > application). So there is nothing wrong with the
> FO.
> >
> > IS there any other way to get a PDF on IE? Im not
> sure
> > why im getting binary content all over the screen?
> >
> > Please HElpp...
> >
> > TIA
> > Raj
> >
> > __
> > Do You Yahoo!?
> > Make a great connection at Yahoo! Personals.
> > http://personals.yahoo.com
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, email:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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




Re: Embedding fop in IE..Help!!!

2001-10-15 Thread Amit

Can you open other pdf files (via a link in a html page) in IE?


"Rajagopal. V" wrote:

> Hi All
> I have an XML file which i combine with a XSL to
> generate the FO file and render it. It works fine with
> Netscape but im having a tough time with IE. It is
> displaying garbage on teh screen. All i get is binary
> characters for the PDF File. I have IE 5.5 Sp1. and i
> tried all the workarounds. These are the ones I tried
> 1) Changed the name of the file to be .pdf so that IE
> will look at the extension and treat it as PDF
>
> 2) Bloated the file size to be more than 8k so that
> there is no buffer problem with IE
>
> 3) Downloaded the Fo file generated and ran the fo
> command line and it generates the PDF properly(as an
> application). So there is nothing wrong with the FO.
>
> IS there any other way to get a PDF on IE? Im not sure
> why im getting binary content all over the screen?
>
> Please HElpp...
>
> TIA
> Raj
>
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




RE: Embedding fop in IE..Help!!!

2001-10-15 Thread Rajagopal. V

Yes, I do set the content Type and NEtsacpe takes it
properly. IE does not take the content type(from MSDN)


--- Stefan Weber <[EMAIL PROTECTED]> wrote:
> Did you set the proper content type?
> 
> response.setContentType("application/pdf");
> 
> Stefan
> 
> -Original Message-
> From: Rajagopal. V [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 15, 2001 4:45 PM
> To: [EMAIL PROTECTED]
> Subject: Embedding fop in IE..Help!!!
> 
> 
> Hi All
> I have an XML file which i combine with a XSL to
> generate the FO file and render it. It works fine
> with
> Netscape but im having a tough time with IE. It is
> displaying garbage on teh screen. All i get is
> binary
> characters for the PDF File. I have IE 5.5 Sp1. and
> i
> tried all the workarounds. These are the ones I
> tried
> 1) Changed the name of the file to be .pdf so that
> IE
> will look at the extension and treat it as PDF
> 
> 2) Bloated the file size to be more than 8k so that
> there is no buffer problem with IE
> 
> 3) Downloaded the Fo file generated and ran the fo
> command line and it generates the PDF properly(as an
> application). So there is nothing wrong with the FO.
> 
> IS there any other way to get a PDF on IE? Im not
> sure
> why im getting binary content all over the screen?
> 
> Please HElpp...
> 
> TIA
> Raj
> 
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 
> <<<
> sitewaerts GmbH
> Hebelstraße 15
> D-76133 Karlsruhe
> 
> Tel: +49 (721) 920 918 0
> Fax: +49 (721) 920 918 29
> http://www.sitewaerts.de
> >>>
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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




Re: Embedding fop in IE..Help!!!

2001-10-15 Thread Rajagopal. V

Hi
I am using a JSP to generate this stuff. I have a
taglib which generates the PDF and i use OutputStream
to spit out the PDF. I use Fop 0.18 for this.
What is strange to me is 
1) It works in Netscape(IT works all the time in
Netscape)

2) When i take the FO file that is used to generate
the PDF and use that to create the PDF using the Fop
commandline, it generates the PDF. 

Somehow IE cannot interpret this stuff. 
Help

- Raj
--- Carmelo Montanez <[EMAIL PROTECTED]> wrote:
> I take it you are using an application.  Are you
> sending both text
> and binary data at the same time?, are you using the
> printWriter? or the getOutputStream method class?,
> for binary data
> you will need the getOutputStream.  I had the same
> problem
> some time ago and sending JUST the binary data
> solved the problem.
> 
> The problem I ran into was the PDF taking the whole
> screen
> and not a portion of it as I wanted to.  Is anyone
> aware of
> how to restrict a a PDF file to a portion of the
> screen?
> 
> Greetings,
> 
> Carmelo Montanez
> 
> - Original Message - 
> From: "Rajagopal. V" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, October 15, 2001 10:45 AM
> Subject: Embedding fop in IE..Help!!!
> 
> 
> > Hi All
> > I have an XML file which i combine with a XSL to
> > generate the FO file and render it. It works fine
> with
> > Netscape but im having a tough time with IE. It is
> > displaying garbage on teh screen. All i get is
> binary
> > characters for the PDF File. I have IE 5.5 Sp1.
> and i
> > tried all the workarounds. These are the ones I
> tried
> > 1) Changed the name of the file to be .pdf so that
> IE
> > will look at the extension and treat it as PDF
> > 
> > 2) Bloated the file size to be more than 8k so
> that
> > there is no buffer problem with IE
> > 
> > 3) Downloaded the Fo file generated and ran the fo
> > command line and it generates the PDF properly(as
> an
> > application). So there is nothing wrong with the
> FO.
> > 
> > IS there any other way to get a PDF on IE? Im not
> sure
> > why im getting binary content all over the screen?
> > 
> > Please HElpp...
> > 
> > TIA
> > Raj
> > 
> > __
> > Do You Yahoo!?
> > Make a great connection at Yahoo! Personals.
> > http://personals.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, email:
> [EMAIL PROTECTED]
> > 
> > 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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




RE: Embedding fop in IE..Help!!!

2001-10-15 Thread Stefan Weber

Did you set the proper content type?

response.setContentType("application/pdf");

Stefan

-Original Message-
From: Rajagopal. V [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 15, 2001 4:45 PM
To: [EMAIL PROTECTED]
Subject: Embedding fop in IE..Help!!!


Hi All
I have an XML file which i combine with a XSL to
generate the FO file and render it. It works fine with
Netscape but im having a tough time with IE. It is
displaying garbage on teh screen. All i get is binary
characters for the PDF File. I have IE 5.5 Sp1. and i
tried all the workarounds. These are the ones I tried
1) Changed the name of the file to be .pdf so that IE
will look at the extension and treat it as PDF

2) Bloated the file size to be more than 8k so that
there is no buffer problem with IE

3) Downloaded the Fo file generated and ran the fo
command line and it generates the PDF properly(as an
application). So there is nothing wrong with the FO.

IS there any other way to get a PDF on IE? Im not sure
why im getting binary content all over the screen?

Please HElpp...

TIA
Raj

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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

<<<
sitewaerts GmbH
Hebelstraße 15
D-76133 Karlsruhe

Tel: +49 (721) 920 918 0
Fax: +49 (721) 920 918 29
http://www.sitewaerts.de
>>>



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




Re: Embedding fop in IE..Help!!!

2001-10-15 Thread Carmelo Montanez

I take it you are using an application.  Are you sending both text
and binary data at the same time?, are you using the
printWriter? or the getOutputStream method class?, for binary data
you will need the getOutputStream.  I had the same problem
some time ago and sending JUST the binary data solved the problem.

The problem I ran into was the PDF taking the whole screen
and not a portion of it as I wanted to.  Is anyone aware of
how to restrict a a PDF file to a portion of the screen?

Greetings,

Carmelo Montanez

- Original Message - 
From: "Rajagopal. V" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 15, 2001 10:45 AM
Subject: Embedding fop in IE..Help!!!


> Hi All
> I have an XML file which i combine with a XSL to
> generate the FO file and render it. It works fine with
> Netscape but im having a tough time with IE. It is
> displaying garbage on teh screen. All i get is binary
> characters for the PDF File. I have IE 5.5 Sp1. and i
> tried all the workarounds. These are the ones I tried
> 1) Changed the name of the file to be .pdf so that IE
> will look at the extension and treat it as PDF
> 
> 2) Bloated the file size to be more than 8k so that
> there is no buffer problem with IE
> 
> 3) Downloaded the Fo file generated and ran the fo
> command line and it generates the PDF properly(as an
> application). So there is nothing wrong with the FO.
> 
> IS there any other way to get a PDF on IE? Im not sure
> why im getting binary content all over the screen?
> 
> Please HElpp...
> 
> TIA
> Raj
> 
> __
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 


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