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]




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 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(bytearrayoutputstreamobject);

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 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(bytearrayoutputstreamobject);

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
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
xml:render format=PDF file=%=xslFile%/ or
xml:render format=HTML file=%=xslFile%/

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(bytearrayoutputstreamobject);
 
 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]