You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Michael Plumb <mp...@cmcflex.com> on 2003/06/16 20:25:16 UTC

[HELP]XSL to PDF graphics

I am attempting to convert An XSL:FO and XML file to a PDF output.  I can
currently get the text to work just fine.  But I am unable to get the
graphics I have within my XSL file to convert over as well.  I am left with
a PDF page of Text with holes where the graphics should be.  Could you
please send me the SITEMAP line of code to fix this problem, or tell me
another way to remedy it.  Thank you.

CUBE


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: [HELP]XSL to PDF graphics

Posted by Stephan Kassanke <ka...@gmx.de>.
Michael Plumb wrote:
> I am attempting to convert An XSL:FO and XML file to a PDF output.  I
> can currently get the text to work just fine.  But I am unable to get
> the graphics I have within my XSL file to convert over as well.  I am
> left with a PDF page of Text with holes where the graphics should be.
> Could you please send me the SITEMAP line of code to fix this
> problem, or tell me another way to remedy it.  Thank you.
>

Hi Michael,

thi sis most likely not a problem of the sitemap but of FOP (the PDF
renderer). If I remember correctly FOP does not like relative references to
an image. Just make the references explicit
(http://www.somewhere.com/myimage.jpg) and it should be working. There are
certainly more elegant ways to deal with this problem, but you can find the
problem source this way rather quickly.

best regards,

Stephan


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: [HELP]XSL to PDF graphics

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Michael Plumb wrote:

> I am attempting to convert An XSL:FO and XML file to a PDF output.  I can
> currently get the text to work just fine.  But I am unable to get the
> graphics I have within my XSL file to convert over as well.  I am left with
> a PDF page of Text with holes where the graphics should be.  Could you
> please send me the SITEMAP line of code to fix this problem, or tell me
> another way to remedy it.  Thank you.

The PDF serializer probably can't find the image files.
You can try absolute file URLs, like
   src="file:///foo/bar/some-image.jpg"
or define a base URL in the config file.
You can find more on the latter in the COcoon docs and the
Wiki.

J.Pietschmann


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org