Problems rendering PDF dynamically, but identical fop xml works fine when sent straight to serializer

2002-10-24 Thread James Ashton
Been doing some fairly sophisticated XML  FO
transformations.

However,  when I try to view the finished PDF, The Acrobat
reader reports this error in the status bar:

An error has occurred while trying to use this document.

What is interesting is that if I serialize FO to xml rather
than using fo2pdf, then the FO works fine.  If I save the
XML and create a new pipeline entry to render that saved
xml as a pdf using fo2pdf then it works.
So the transformation seems to be OK, and rendering static
XML as PDFs is OK.

Has anyone experienced similar problems - and if so how did
you resolve it ??

Please Help Me ,

James


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: Problems rendering PDF dynamically, but identical fop xml works fine when sent straight to serializer

2002-10-24 Thread robert_hitchins
James,

Ran into something similar...this may help:  Make sure that the fop JAR 
file version inside Cocoon is the same as the one you use when you 
serialize.  I had fop-0.20.4.jar running from the command line and 
fop-0.20.3.jar running inside Cocoon and noticed some anomalies.

Hope this helps!

Bob

-Original Message-
From: [EMAIL PROTECTED] [mailto:jamesashton;yahoo.com]
Sent: Thursday, October 24, 2002 7:42 AM
To: [EMAIL PROTECTED]
Subject: Problems rendering PDF dynamically, but identical fop xml works
fine when sent straight to serializer


Been doing some fairly sophisticated XML  FO
transformations.

However,  when I try to view the finished PDF, The Acrobat
reader reports this error in the status bar:

An error has occurred while trying to use this document.

What is interesting is that if I serialize FO to xml rather
than using fo2pdf, then the FO works fine.  If I save the
XML and create a new pipeline entry to render that saved
xml as a pdf using fo2pdf then it works.
So the transformation seems to be OK, and rendering static
XML as PDFs is OK.

Has anyone experienced similar problems - and if so how did
you resolve it ??

Please Help Me ,

James


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: Problems rendering PDF dynamically, but identical fop xml works fine when sent straight to serializer

2002-10-24 Thread Ryan Agler
I played around with fo for the first time yesterday and ran into the
same thing.  Turns out if I enclosed everything after fo:flow
flow-name=xsl-region-body with an fo:block, and then also enclosed
anything within an fo:cell with fo:block things worked out fine.  





-Original Message-
From: James Ashton [mailto:jamesashton;yahoo.com] 
Sent: Thursday, October 24, 2002 7:42 AM
To: [EMAIL PROTECTED]
Subject: Problems rendering PDF dynamically, but identical fop xml works
fine when sent straight to serializer

Been doing some fairly sophisticated XML  FO
transformations.

However,  when I try to view the finished PDF, The Acrobat
reader reports this error in the status bar:

An error has occurred while trying to use this document.

What is interesting is that if I serialize FO to xml rather
than using fo2pdf, then the FO works fine.  If I save the
XML and create a new pipeline entry to render that saved
xml as a pdf using fo2pdf then it works.
So the transformation seems to be OK, and rendering static
XML as PDFs is OK.

Has anyone experienced similar problems - and if so how did
you resolve it ??

Please Help Me ,

James


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




The plot thickens !! (RE: Problems rendering PDF dynamically, but identical fop xml works fine when sent straight to serializer)

2002-10-24 Thread James Ashton
Cheers Robert (I'll test that out tomorrow - am away from
my dev machine now - although another test described below
seems to suggest that my Cocoon installation is fine.)

Earlier I decided to load the page in netscape 6 instead -
it worked, switch back to IE 6 - doesn't work.

Has anybody else experienced problems where PDFs are
delivered to Netscape but not IE.

Everything works fine under Tomcat 4.0.1, but not 4.0.3 or
4.1.12 , and as far as I am aware, everything else is the
same in terms of the Cocoon installation, and everything
else that I've tested works in all three Tomcat versions.

any help will be much appreciated.
--- [EMAIL PROTECTED] wrote:  James,
 
 Ran into something similar...this may help:  Make sure
 that the fop JAR 
 file version inside Cocoon is the same as the one you use
 when you 
 serialize.  I had fop-0.20.4.jar running from the command
 line and 
 fop-0.20.3.jar running inside Cocoon and noticed some
 anomalies.
 
 Hope this helps!
 
 Bob
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:jamesashton;yahoo.com]
 Sent: Thursday, October 24, 2002 7:42 AM
 To: [EMAIL PROTECTED]
 Subject: Problems rendering PDF dynamically, but
 identical fop xml works
 fine when sent straight to serializer
 
 
 Been doing some fairly sophisticated XML  FO
 transformations.
 
 However,  when I try to view the finished PDF, The
 Acrobat
 reader reports this error in the status bar:
 
 An error has occurred while trying to use this
 document.
 
 What is interesting is that if I serialize FO to xml
 rather
 than using fo2pdf, then the FO works fine.  If I save the
 XML and create a new pipeline entry to render that saved
 xml as a pdf using fo2pdf then it works.
 So the transformation seems to be OK, and rendering
 static
 XML as PDFs is OK.
 
 Has anyone experienced similar problems - and if so how
 did
 you resolve it ??
 
 Please Help Me ,
 
 James
 
 
 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts
 http://uk.my.yahoo.com
 

-
 Please check that your question  has not already been
 answered in the
 FAQ before posting.
 http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:  
 [EMAIL PROTECTED]
 
 
 

-
 Please check that your question  has not already been
 answered in the
 FAQ before posting.
 http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:  
 [EMAIL PROTECTED]
  

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Problems rendering PDF dynamically, but identical fop xml works fine when sent straight to serializer

2002-10-24 Thread James Ashton
Thanks Antonio,
I think that may be the problem (I then installed netscape
and it worked fine) - I'll check my browser when I'm on my
work machine tomorrow.

cheers again,
James
--- Antonio Gallardo Rivera
[EMAIL PROTECTED] wrote:  Try to send a
response with a clear PDF extension.
 Example:
 foo.pdf.
 
 I had this problem before with MSIE 6.0 SP1 and it
 corrects the error. Have a 
 nice xsl-fo coding :-D
 
 Antonio Gallardo.
 
 El Jueves, 24 de Octubre de 2002 08:47, Ryan Agler
 escribió:
  I played around with fo for the first time yesterday
 and ran into the
  same thing.  Turns out if I enclosed everything after
 fo:flow
  flow-name=xsl-region-body with an fo:block, and
 then also enclosed
  anything within an fo:cell with fo:block things
 worked out fine.
 
 
 
 
 
  -Original Message-
  From: James Ashton [mailto:jamesashton;yahoo.com]
  Sent: Thursday, October 24, 2002 7:42 AM
  To: [EMAIL PROTECTED]
  Subject: Problems rendering PDF dynamically, but
 identical fop xml works
  fine when sent straight to serializer
 
  Been doing some fairly sophisticated XML  FO
  transformations.
 
  However,  when I try to view the finished PDF, The
 Acrobat
  reader reports this error in the status bar:
 
  An error has occurred while trying to use this
 document.
 
  What is interesting is that if I serialize FO to xml
 rather
  than using fo2pdf, then the FO works fine.  If I save
 the
  XML and create a new pipeline entry to render that
 saved
  xml as a pdf using fo2pdf then it works.
  So the transformation seems to be OK, and rendering
 static
  XML as PDFs is OK.
 
  Has anyone experienced similar problems - and if so how
 did
  you resolve it ??
 
  Please Help Me ,
 
  James
 
 
  __
  Do You Yahoo!?
  Everything you'll ever need on one web page
  from News and Sport to Email and Music Charts
  http://uk.my.yahoo.com
 
 

-
  Please check that your question  has not already been
 answered in the
  FAQ before posting.
 http://xml.apache.org/cocoon/faq/index.html
 
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:  
 [EMAIL PROTECTED]
 
 

-
  Please check that your question  has not already been
 answered in the
  FAQ before posting.
 http://xml.apache.org/cocoon/faq/index.html
 
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:  
 [EMAIL PROTECTED]
 

-
 Please check that your question  has not already been
 answered in the
 FAQ before posting.
 http://xml.apache.org/cocoon/faq/index.html
 
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:  
 [EMAIL PROTECTED]
  

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




Re: Problems rendering PDF dynamically, but identical fop xml works fine when sent straight to serializer

2002-10-24 Thread Antonio Gallardo Rivera
Try to send a response with a clear PDF extension. Example:
foo.pdf.

I had this problem before with MSIE 6.0 SP1 and it corrects the error. Have a 
nice xsl-fo coding :-D

Antonio Gallardo.

El Jueves, 24 de Octubre de 2002 08:47, Ryan Agler escribió:
 I played around with fo for the first time yesterday and ran into the
 same thing.  Turns out if I enclosed everything after fo:flow
 flow-name=xsl-region-body with an fo:block, and then also enclosed
 anything within an fo:cell with fo:block things worked out fine.





 -Original Message-
 From: James Ashton [mailto:jamesashton;yahoo.com]
 Sent: Thursday, October 24, 2002 7:42 AM
 To: [EMAIL PROTECTED]
 Subject: Problems rendering PDF dynamically, but identical fop xml works
 fine when sent straight to serializer

 Been doing some fairly sophisticated XML  FO
 transformations.

 However,  when I try to view the finished PDF, The Acrobat
 reader reports this error in the status bar:

 An error has occurred while trying to use this document.

 What is interesting is that if I serialize FO to xml rather
 than using fo2pdf, then the FO works fine.  If I save the
 XML and create a new pipeline entry to render that saved
 xml as a pdf using fo2pdf then it works.
 So the transformation seems to be OK, and rendering static
 XML as PDFs is OK.

 Has anyone experienced similar problems - and if so how did
 you resolve it ??

 Please Help Me ,

 James


 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts
 http://uk.my.yahoo.com

 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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

 -
 Please check that your question  has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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




RE: Problems rendering PDF dynamically, but identical fop xml works fine when sent straight to serializer

2002-10-24 Thread Ricardo Trindade
I had the same problem with IE too. apparently it ignores the mime type and
only cares for the .pdf extension.

-Original Message-
From: James Ashton [mailto:jamesashton;yahoo.com]
Sent: quinta-feira, 24 de Outubro de 2002 18:45
To: [EMAIL PROTECTED]
Subject: Re: Problems rendering PDF dynamically, but identical fop xml
works fine when sent straight to serializer


Thanks Antonio,
I think that may be the problem (I then installed netscape
and it worked fine) - I'll check my browser when I'm on my
work machine tomorrow.

cheers again,
James
--- Antonio Gallardo Rivera
[EMAIL PROTECTED] wrote:  Try to send a
response with a clear PDF extension.
 Example:
 foo.pdf.

 I had this problem before with MSIE 6.0 SP1 and it
 corrects the error. Have a
 nice xsl-fo coding :-D

 Antonio Gallardo.

 El Jueves, 24 de Octubre de 2002 08:47, Ryan Agler
 escribió:
  I played around with fo for the first time yesterday
 and ran into the
  same thing.  Turns out if I enclosed everything after
 fo:flow
  flow-name=xsl-region-body with an fo:block, and
 then also enclosed
  anything within an fo:cell with fo:block things
 worked out fine.
 
 
 
 
 
  -Original Message-
  From: James Ashton [mailto:jamesashton;yahoo.com]
  Sent: Thursday, October 24, 2002 7:42 AM
  To: [EMAIL PROTECTED]
  Subject: Problems rendering PDF dynamically, but
 identical fop xml works
  fine when sent straight to serializer
 
  Been doing some fairly sophisticated XML  FO
  transformations.
 
  However,  when I try to view the finished PDF, The
 Acrobat
  reader reports this error in the status bar:
 
  An error has occurred while trying to use this
 document.
 
  What is interesting is that if I serialize FO to xml
 rather
  than using fo2pdf, then the FO works fine.  If I save
 the
  XML and create a new pipeline entry to render that
 saved
  xml as a pdf using fo2pdf then it works.
  So the transformation seems to be OK, and rendering
 static
  XML as PDFs is OK.
 
  Has anyone experienced similar problems - and if so how
 did
  you resolve it ??
 
  Please Help Me ,
 
  James
 
 
  __
  Do You Yahoo!?
  Everything you'll ever need on one web page
  from News and Sport to Email and Music Charts
  http://uk.my.yahoo.com
 
 

-
  Please check that your question  has not already been
 answered in the
  FAQ before posting.
 http://xml.apache.org/cocoon/faq/index.html
 
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 

-
  Please check that your question  has not already been
 answered in the
  FAQ before posting.
 http://xml.apache.org/cocoon/faq/index.html
 
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]


-
 Please check that your question  has not already been
 answered in the
 FAQ before posting.
 http://xml.apache.org/cocoon/faq/index.html

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


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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



-
Please check that your question  has not already been answered in the
FAQ before posting. http://xml.apache.org/cocoon/faq/index.html

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