Page 1 of 1

XSL-FO/apache FOP - path to images

Posted: Tue Oct 02, 2018 4:22 pm
by MarkusHuneke
Hello,
I have the following problem: I convert a number of xml documents to PDF using XSL-FO with Apache FOP. How do I enter the path to the folder with the images correctly? I tried the absolute specification (like:

Code: Select all

e:/path/to/images/
- with extracted, correct image numbers). The path was correct in my opinion, but the images were not displayed.
On another workstation it worked to put the images folder into the temp folder of Oxygen (OxygenXMLTemp). I can't do that again on this computer (apart from the fact that it's only a temporary solution anyway).

Thank you in advance,
Markus Huneke

Re: XSL-FO/apache FOP - path to images

Posted: Wed Oct 03, 2018 9:58 am
by Radu
Hi Markus,

How does the generated XSL-FO file look like?
In the end the XSL-FO should refer to the image something like this:

Code: Select all

<fo:external-graphic src="url(file:/e:/path/to/images/image.png)"></fo:external-graphic>
Regards,
Radu