The conversion from vsdx to svg results in incorrect elements

测试文件:
医学谱图.zip (58.6 KB)

从vsdx转换后的svg文件:
image.png (19.7 KB)

测试代码:
@Test
public void testVsdxSvg() throws Exception {
String sourcePath = “D:\test\aspose\diagram\医学谱图.vsdx”;
String targetPath = “D:\test\aspose\diagram\医学谱图-vsdx.svg”;
Diagram diagram = null;
try {
// 创建Diagram类的实例
diagram = new Diagram(sourcePath);
// create an instance SVG save options class
SVGSaveOptions options = new SVGSaveOptions();
ShapeCollection shapes = options.getShapes();

        // get shapes by page index and shape ID, and then add in the shape collection object
        for (Object pageObj : diagram.getPages()) {
            com.aspose.diagram.Page page = (com.aspose.diagram.Page) pageObj;
            ShapeCollection pageShapes = page.getShapes();
            for (Object shapeObj : pageShapes) {
                Shape shape = (Shape) shapeObj;
                shapes.add(shape);
            }
        }
        // save Visio drawing
        diagram.save(targetPath, options);
    } finally {
        if (diagram != null) {
            diagram.dispose();
        }
    }
}

This topic has been moved to the related forum: The conversion from vsdx to svg results in incorrect elements - Free Support Forum - aspose.com