I'm trying to use the same css stylesheet for a webpage and for a pdf file generated by princexml.
For the webpage I have my path specified from the document root, i.e.
Using this with Prince XML shows a file not found error in the error log.
However this works as expected:
I'm not able to change the contents of the css file, it has to stay as per the first example. Is there any way to prepend a path to image filepaths when prince renders the PDF? I thought baseURL might do it, but it hasn't helped.
Thanks in advance for your help,
-Ali
For the webpage I have my path specified from the document root, i.e.
background-image: url(/images/header.jpg);
Using this with Prince XML shows a file not found error in the error log.
However this works as expected:
background-image: url(/absolute/path/to/document/root/images/header.jpg);
I'm not able to change the contents of the css file, it has to stay as per the first example. Is there any way to prepend a path to image filepaths when prince renders the PDF? I thought baseURL might do it, but it hasn't helped.
Thanks in advance for your help,
-Ali