Page 1 of 1

adding a jpg image in XSLT

Posted: Tue Feb 09, 2021 12:26 pm
by Jackdaniels
Hello all,

I'm trying to add a logo that will be rendered in a PDF file through XSLT.
the formula I'm trying to use is the following but it doesn't work:

<fo:block>
<fo:external-graphic src="url(file:\C:\Users\Desktop\logo.jpg)"/>
</fo:block>

Does anyone know how to make this work?
Thanks for your support.

Cheers
JD

Re: adding a jpg image in XSLT

Posted: Tue Feb 09, 2021 12:32 pm
by Radu
Hi,

An URL-like path uses "/" instead of "\", so maybe you can try something like:

Code: Select all

<fo:external-graphic src="url(file:/C:/Users/Desktop/logo.jpg)"/> 
Regards,
Radu