//Dimension
int width = graphSheet.getWidth().intValue();
int height = graphSheet.getHeight().intValue();
if (width > height) {
supportSize = new SupportSize(width * supportSize.getHeightInt() / height, supportSize.getHeightInt(), LengthUnit.PIXELS);
} else if (height > width) {
supportSize = new SupportSize(supportSize.getWidthInt(), height * supportSize.getWidthInt() / width, LengthUnit.PIXELS);
}
// root element
svgRoot = doc.getDocumentElement();
svgRoot.setAttributeNS(null, "width", supportSize.getWidth());