After a while using the Rendering plugin I realized that the best way to reference resources (css, img, fonts, ...) is using the file:/// URI notation because we are going to render the PDF locally anyway. The problem is that although the plugin renders the images properly (eg: <img src="file:///..."/>), it fails to resolve the css resources using this perfectly valid URI notation (http://en.wikipedia.org/wiki/File_URI_scheme)
I have been trying to find the problem unsuccessfully.
This would make unnecessary to harcode the URL in the Groovy.config file and open the door to resolve the URLs dynamically and avoid network configuration problems.
After a while using the Rendering plugin I realized that the best way to reference resources (css, img, fonts, ...) is using the file:/// URI notation because we are going to render the PDF locally anyway. The problem is that although the plugin renders the images properly (eg: <img src="file:///..."/>), it fails to resolve the css resources using this perfectly valid URI notation (http://en.wikipedia.org/wiki/File_URI_scheme)
I have been trying to find the problem unsuccessfully.
This would make unnecessary to harcode the URL in the Groovy.config file and open the door to resolve the URLs dynamically and avoid network configuration problems.
Cheers, Angel.