xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nirmesh Desai" <nde...@autonomy.com>
Subject RE: Format the generated svg file using Batik
Date Thu, 13 Nov 2008 17:56:21 GMT
Using TransformerFactory could help.


    Transformer  trnfrmr =

    DOMSource    domsrc  = new DOMSource(svgDoc.getFirstChild());

    StringWriter sw      = new StringWriter();

    StreamResult res     = new StreamResult(sw);


    trnfrmr.transform(domsrc, res);





From: Denis Weerasiri [mailto:ddweerasiri@gmail.com] 
Sent: Wednesday, November 12, 2008 10:50 PM
To: batik-users@xmlgraphics.apache.org
Subject: Format the generated svg file using Batik


Is there a possible way in Batik to change the format of the svg file.
I tried SVG pretty printer. But it seems that it does not change the
format of the SVG file, it just print on the screen the formatted
Please correct me if I'm wrong.
Thank you.

View raw message