xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amanda Fernandez Redondo" <jaip...@gmail.com>
Subject Re: Transcoding images: they result cutted
Date Wed, 21 Nov 2007 09:07:46 GMT
Thank you very much, this just fixed the problem: before transcoding, I
added this code:

SVGDocument svgDoc = canvas.getSVGDocument();
Element svg = svgDoc.getDocumentElement();
svg.setAttributeNS(null, "width", ""+canvas.getWidth());
svg.setAttributeNS(null, "height", ""+canvas.getHeight());

Thanks, thanks, thanks


-- 
Amanda Fernández Redondo

Mime
View raw message