hello,

when using the epstranscoder in headless mode with a transparent svg
element, this exception is thrown:

[...]
2006.09.27 11:34:30 - TranscodeUtils...... - ERROR
java.awt.HeadlessException (null)
2006.09.27 11:34:30 - TranscodeUtils...... - ERROR
java.awt.HeadlessException
2006.09.27 11:34:30 - TranscodeUtils...... - ERROR        at
sun.java2d.HeadlessGraphicsEnvironment.getDefaultScreenDevice(HeadlessGraphicsEnvironment.java:66)
2006.09.27 11:34:30 - TranscodeUtils...... - ERROR        at
org.apache.xmlgraphics.java2d.ps.PSGraphics2D.getDeviceConfiguration(PSGraphics2D.java:759)
2006.09.27 11:34:30 - TranscodeUtils...... - ERROR        at
org.apache.batik.ext.awt.image.GraphicsUtil.getDestination(GraphicsUtil.java:511)
2006.09.27 11:34:30 - TranscodeUtils...... - ERROR        at
org.apache.batik.ext.awt.image.GraphicsUtil.getDestinationColorModel(GraphicsUtil.java:525)
[...]

my code that's calling the epstranscoder is this:

        System.err.println("saving eps ... ");
        try {
            EPSTranscoder t = new EPSTranscoder();
            TranscoderInput input = new TranscoderInput(doc);
            TranscoderOutput output = new TranscoderOutput(os);
            t.transcode(input, output);
        } catch (Exception e) {
            logger.error(e);
        }


now, if i run this in "normal" mode (i.e., not headless), the error is
not thrown, but the transparencies and strokes are not drawn correctly,
either. the elements are always fully opaque, and the strokes are
cropped to the actual path of the element, with parts of the stroke
extending to the outside not being rendered.

i am including an exampleof this behaviour (not including the stroke
thing for now). these were rendered using jdk1.4.2 and the most recent
svn revision as of 20 minutes ago. is this something i should file a bug
report for?

(the example zip was too large, so here's the url:)

http://disco.alternetive.org/svg-to-eps.zip


.rm









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

Reply via email to