*/
public static Document CxnSpToSVG(CxnSp cxnSp) {
// Geometrical transforms
CTTransform2D xfrm = cxnSp.getSpPr().getXfrm();
Box b = new Box(xfrm.getOff().getX(), xfrm.getOff().getY(),
xfrm.getExt().getCx(), xfrm.getExt().getCy() );
if (xfrm.getRot()!=0) {
b.rotate(xfrm.getRot());
}
if (xfrm.isFlipH() ) {
b.flipH();
}
if (xfrm.isFlipV() ) {
b.flipV();
}
// Convert from EMU to pixels
b.toPixels();
// Wrap in a div positioning it on the page
Document document = XmlUtils.getNewDocumentBuilder().newDocument();
Element xhtmlDiv = document.createElement("div");
// Firefox needs the following; Chrome doesn't
xhtmlDiv.setAttribute("style",
"position: absolute; width:100%; height:100%; left:0px; top:0px;");
Node n = document.appendChild(xhtmlDiv);
// Convert the object itself to SVG
Svg svg = oFactory.createSvg();
Line line = oFactory.createLine();
svg.getSVGDescriptionClassOrSVGAnimationClassOrSVGStructureClass().add(line);
line.setX1(b.getOffset().getXAsString() );
line.setY1(b.getOffset().getYAsString() );
Point otherEnd = b.getOtherCorner();
line.setX2( otherEnd.getXAsString() );
line.setY2( otherEnd.getYAsString() );
line.setStyle("stroke:rgb(99,99,99)");