Re: Relative path for images in FOP

2013-03-09 Thread Jos Snellings
It depends,

Where is fop.xconf?
In this file you can specify a 'base' parameter, relative to the location
of the file.

Cheers,
Jos


On Sun, Mar 10, 2013 at 7:18 AM, Mansour Al Akeel  wrote:

> I have this:
>
> 
>  />
> 
> ..
>
> I am getting this in the logs:
>
> 2013-03-10 01:12:29,952 btpool0-1 ERROR apps.FOUserAgent - Image not
> found. URI: logo.png. (No context info available)
>
> And of course the image doesn't show on the generated pdf page. I
> tried all possible combinations of the image path:
>
> src="logo.png"
> src="url('COB-INF/xslts/fo/logo.png')"
>
> The only thing that worked was the absolute path. However, this is not
> an option when deploying to the server. So my question is, how do I
> get fo2pdf serializer to resolve relative paths ??
>
> Thank you.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>


-- 
All generous minds have a horror of what are commonly called "Facts". They
are the brute beasts of the intellectual domain.
-- Thomas Hobbes
 


Re: Relative path for images in FOP

2013-03-09 Thread Mansour Al Akeel
OK, I  was able to do this:




then



It works, but I am wondering if there's a better way to let the
serializer get the relative path of the images.





On Sun, Mar 10, 2013 at 1:18 AM, Mansour Al Akeel
 wrote:
> I have this:
>
> 
> 
> 
> ..
>
> I am getting this in the logs:
>
> 2013-03-10 01:12:29,952 btpool0-1 ERROR apps.FOUserAgent - Image not
> found. URI: logo.png. (No context info available)
>
> And of course the image doesn't show on the generated pdf page. I
> tried all possible combinations of the image path:
>
> src="logo.png"
> src="url('COB-INF/xslts/fo/logo.png')"
>
> The only thing that worked was the absolute path. However, this is not
> an option when deploying to the server. So my question is, how do I
> get fo2pdf serializer to resolve relative paths ??
>
> Thank you.

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



Relative path for images in FOP

2013-03-09 Thread Mansour Al Akeel
I have this:




..

I am getting this in the logs:

2013-03-10 01:12:29,952 btpool0-1 ERROR apps.FOUserAgent - Image not
found. URI: logo.png. (No context info available)

And of course the image doesn't show on the generated pdf page. I
tried all possible combinations of the image path:

src="logo.png"
src="url('COB-INF/xslts/fo/logo.png')"

The only thing that worked was the absolute path. However, this is not
an option when deploying to the server. So my question is, how do I
get fo2pdf serializer to resolve relative paths ??

Thank you.

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