xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Valls" <ava...@ngeografics.com>
Subject org.apache.batik.transcoder.TranscoderException: space
Date Wed, 26 Sep 2001 08:02:04 GMT
I'm using the SVGTranscoder to save a SVG file. With one of the files works fine but with another
gives this Exception when executing:

   org.apache.batik.transcoder.TranscoderException: space
        at org.apache.batik.transcoder.svg2svg.PrettyPrinter.fatalError(PrettyPrinter.java:1685)
        at org.apache.batik.transcoder.svg2svg.PrettyPrinter.printPI(PrettyPrinter.java:498)
        at org.apache.batik.transcoder.svg2svg.PrettyPrinter.printContent(PrettyPrinter.java:937)
        at org.apache.batik.transcoder.svg2svg.PrettyPrinter.printElement(PrettyPrinter.java:899)
        at org.apache.batik.transcoder.svg2svg.PrettyPrinter.print(PrettyPrinter.java:242)
        at org.apache.batik.transcoder.svg2svg.SVGTranscoder.prettyPrint(SVGTranscoder.java:222)
        at org.apache.batik.transcoder.svg2svg.SVGTranscoder.transcode(SVGTranscoder.java:178)
        at SVGDOMUtils.saveToSVG(SVGDOMUtils.java:338)

What space is referring to ?? Which is the problem ??

The code:

   FileOutputStream outputS = new FileOutputStream(path);
   Writer outS= new OutputStreamWriter(outputS, "UTF-8");
   TranscoderInput inputS = new TranscoderInput(doc);
   TranscoderOutput outputS2 = new TranscoderOutput(outS);
   SVGTranscoder t = new SVGTranscoder();
   //t.addTranscodingHint(SVGTranscoder.KEY_DOCTYPE,false );
   t.transcode(inputS, outputS2);    // this is the line 338




Mime
View raw message