Måns Rullgård wrote:

Thomas DeWeese <[EMAIL PROTECTED]> writes:


That much nicer I think, but I still get an error unfortunately. The
error now is:
Exception in thread "main" org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
null:-1
The URI "#linearGradient7024"
specified on the element <linearGradient> is invalid

This is probably due to the use of streams. With a stream it doesn't know the 'base URL' for the document. I had thought that we had worked this out for internal references but it appears there is at least a few cases we missed. Anyway I think the fix is simple:

This case is simple, but I've had some trouble with slightly more complex cases. I have a servlet that dynamically generates SVG documents, and rasterizes these. The dynamic SVG has some <use> references to static SVG files on disk, and to find those, I need to set xml:base to the directory where these are stored. This is all well, except that I can't use internal references, such as url(#gradient). This is a bit of an inconvenience. Is there a way around this?

Basically use the method above to provide what ever you are currently setting xml:base to the InputTranscoder. The URI isn't used to access data when you provide an input stream.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to