String name = attr.getValue("draw:name");
if( (name != null)
&& (attr.getValue("svg:width") == null)
&& (attr.getValue("svg:height") == null)
){
java.awt.Image image = new javax.swing.ImageIcon(name).getImage();
int width = image.getWidth(null);
int height = image.getHeight(null);
if( (width>0) && (height>0) ){
org.xml.sax.helpers.AttributesImpl attrs =
new org.xml.sax.helpers.AttributesImpl( attr );
attrs.addAttribute(null, "svg:width", "svg:width",
"String", (width * 72 / 110) + "pt");
attrs.addAttribute(null, "svg:width", "svg:height",
"String", (height * 72 / 110) + "pt");
attr = attrs;
} }
-_-_-