gpc / rendering

Provides rendering of GSPs as PDFs, JPEGs, GIFs and PNGs
http://gpc.github.com/rendering
Apache License 2.0
31 stars 45 forks source link

Plugin fails to render some elements that are referenced using absoute URL with the file URI notation file:/// #7

Closed aruizca closed 11 years ago

aruizca commented 11 years ago

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.

aruizca commented 11 years ago

I was wrong. It does support the file URI notation file:///