Hi,
Further to my previous email to the mailing list, I've now tried the following:
import org.apache.batik.transcoder.*;
import org.apache.batik.transcoder.image.*;
import org.apache.batik.*;
import java.io.*;
public class TestSVGGeneration{
public static void main(String args[]) throws Exception{
FileInputStream is = new FileInputStream("c:\\temp\\1.svg");
FileOutputStream osF = new FileOutputStream("C:\\temp\\1-out.png");
TranscoderInput in=new TranscoderInput(is);
TranscoderOutput out = new TranscoderOutput(osF);
PNGTranscoder png=new PNGTranscoder();
png.transcode(in,out);
}
}
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
at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown S
ource)
at org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown S
ource)
at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown S
ource)
at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown S
ource)
at TestSVGGeneration.main(TestSVGGeneration.java:24)
Does anyone know what I could do different here to make it work?
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]