James Shaw wrote:
I am trying to pass an SVGDocument that I have created in-memory (i.e. there is no copy of it on disc) to the pretty printer.
Then how do you know what attributes are on the root element? The transcoder uses DOMUtilities to 'serialize' the DOM before it is sent to the pretty printer.
I have extended org.apache.batik.apps.svgpp.Main and I am calling the transcoder like this:
PRETTY_PRINTER.transform(new TranscoderInput(doc), new TranscoderOutput(writer));
where doc is the SVGDocument and PRETTY_PRINTER is my extension of batik.apps.svgpp.Main. From what you say, this could be the reason for the breakage. How would you suggest I implement this?
My suspicion is that your document is the problem. Try and view the document you are outputting.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
