Am Dienstag, 16. Mai 2006 04:16 schrieb Cameron McCormack:
> > There seem's to be a known bug in batik, so that streaming out results in
> > a corrupted document. So I tried the work-around:
>
> What do you mean that it results in a corrupted document?

I mean http://issues.apache.org/bugzilla/show_bug.cgi?id=35202
Calling stream() has the effect that the document's content gets lost. But 
maybe that's a feature than a bug.

> The javadoc for the dispose method says:
>
>   A Graphics object cannot be used after dispose has been called.

Ah, thanks, I didn't read that.

> Otherwise, is there any reason you don't want to create a new
> SVGGraphics2D object?  There's maybe a slight overhead, but I don't
> think it's too great.

The overhead is too great, it takes between 1000-2000ms to create the 
SVGGraphics2D object.
But you are right, my problem was the dispose() call. Without dispose() it 
works, because of stream() also resets the documents content but without 
'corrupting' it as I thought.

So problem solved. Thank's for your hints!

Regards,
Dominik Lindner


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

Reply via email to