Rob wrote:
Further to my previous email to the mailing list, I've now tried the following:
[...]
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:
File f = new File("c:\\temp\\1.svg"); FileInputStream is = new FileInputStream(f); TranscoderInput in = new TranscoderInput(is); in.setURI(f.toURL());
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]