Hi,
I'm using FOP with a servlet. The servlet generates XML which is then
translated using XSL or, if the user clicks print, will take the XML and
generate a PDF. In the XSL-FO I have an image that appears in the produced
PDF and reference it like so:
fo:external-graphic src=url(logo.jpg)/
if I
Richard Sweeney wrote:
snip/
fo:external-graphic src=url(path/to/file/logo.jpg)/
is there a way to make it search for the image in the current directory,
i.e. the same one as the XSL-FO stylesheet?
You can set the base directory for which relative paths will be resolved
against. This can be done
URL : unknown protocol: c
Well, 'c' is not a protocol, you should try something like :
file:C:///stylesheets/fop
or
url('file:C:///stylesheets/fop')
I'm no sure, experts will tell you more
Mathieu
-
To unsubscribe, e-mail:
Richard Sweeney wrote:
[ERROR] Error while creating area : Invalid Image URL - error on relative
URL : unknown protocol: c ---(that's actually where the message ends)
Check the FAQ:
http://xml.apache.org/fop/faq.html#MalformedURLException
J.Pietschmann