HI All,

I have been generating a PDF file using FOP, I want to put a gif onto the
PDF. I can do this but only when the .gif file is on the C:/ drive of the
machine. I want to use relative path, so that it works for all users.
When I put the logo.gif in my c:/ drive and have the code as below it works:

<fo:table-row>
  <fo:table-cell number-columns-spanned="5">
    <fo:block text-align="left">
        <fo:external-graphic content-width="2.08in" content-height="0.72in"
src='url("/logo.gif")' />
    </fo:block>
  </fo:table-cell>
</fo:table-row>

I am looking for the syntax to use for src='url("/logo.gif")'
Notice the single outer quotes and the double inner quotes - it only works
this way for me. My <xsl:stylesheet version="1.0"> and also xml version is
1.0. The .gif file is actually in my Eclipse project workspace under
WebContent, I am just not sure how I can refer to it using relative path. I
have tried various different syntax combinations, but have been
unsuccessful.

Would really appreciate it, if someone could give me an example of using
relative path, particularly specifying where they put the actual .gif file.
I am interested specifically in where the .xsl file is located and where the
.gif is located, and the syntax of the src  property.

Any help, will be much much appreciated!

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Relative-URL-for-embedding-graphics-in-FOP-tp16294358p16294358.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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

Reply via email to