Hi
I am trying to add image in a pdf file, i am working on windows and have the
jpg image and xsl style sheet in same folder
and in my xsl file i have the following image tag
<fo:block >
<fo:external-graphic src="url('myimage.jpg')"
content-height="0.5cm" content-width="0.5cm" display-align="center" />
</fo:block>

But i get following error
[ERROR] Error while creating area : Error with image URL: myimage.jpg (The
system cannot find the file specified) and no base URL is specified

I copied in the image in
C:\Documents and Settings\Userid which user.home , but still it does not
find the issue

How can i get it working, i cannot hardcode the path, since i am not sure
what it will be at runtime

Ashish

Reply via email to