You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by James Ashton <ja...@yahoo.com> on 2002/10/24 13:42:02 UTC
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Problems rendering PDF dynamically, but identical fop xml works fine when sent straight to serializer
Posted by Ricardo Trindade <Ri...@myrealbox.com>.
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: cocoon-users@xml.apache.org
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
<ag...@agsoftware.dnsalias.com> 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: cocoon-users@xml.apache.org
> > 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:
> <co...@xml.apache.org>
> > For additional commands, e-mail:
> <co...@xml.apache.org>
> >
> >
>
---------------------------------------------------------------------
> > 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:
> <co...@xml.apache.org>
> > For additional commands, e-mail:
> <co...@xml.apache.org>
>
>
---------------------------------------------------------------------
> 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:
> <co...@xml.apache.org>
> For additional commands, e-mail:
> <co...@xml.apache.org>
>
__________________________________________________
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Problems rendering PDF dynamically, but identical fop xml works fine when sent straight to serializer
Posted by James Ashton <ja...@yahoo.com>.
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
<ag...@agsoftware.dnsalias.com> 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: cocoon-users@xml.apache.org
> > 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:
> <co...@xml.apache.org>
> > For additional commands, e-mail:
> <co...@xml.apache.org>
> >
> >
>
---------------------------------------------------------------------
> > 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:
> <co...@xml.apache.org>
> > For additional commands, e-mail:
> <co...@xml.apache.org>
>
>
---------------------------------------------------------------------
> 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:
> <co...@xml.apache.org>
> For additional commands, e-mail:
> <co...@xml.apache.org>
>
__________________________________________________
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Problems rendering PDF dynamically, but identical fop xml works fine when sent straight to serializer
Posted by Antonio Gallardo Rivera <ag...@agsoftware.dnsalias.com>.
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: cocoon-users@xml.apache.org
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Problems rendering PDF dynamically, but identical fop xml works fine when sent straight to serializer
Posted by Ryan Agler <ry...@hotmail.com>.
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: cocoon-users@xml.apache.org
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>