Conversion from SVG to VSDX formed elements error

图1为元素
局部截取_20260707_233557.png (3.2 KB)

局部截取_20260707_223913.png (1.8 KB)

Figure 1 is the SVG diagram, and Figure 2 is the converted VSDX diagram, which doesn’t align with the original format

Conversion code:
/**
* svg 转 visio
*/
@Test
public void svgToVisioFull() throws Exception {
String sourcePath = “D:\test\aspose\绘图1.svg”;
String targetPath = “D:\test\aspose\绘图1-full.vsdx”;
Diagram diagram = null;
try {
// 加载SVG
diagram = new Diagram(sourcePath);
// 导出配置,仅使用真实存在的API
DiagramSaveOptions saveOpts = new DiagramSaveOptions(SaveFileFormat.VSDX);
saveOpts.setAutoFitPageToDrawingContent(true);
diagram.save(targetPath, saveOpts);
} finally {
if (diagram != null) {
diagram.dispose();
}
}
}

@wxpid1
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): DIAGRAMAPP-3234

Could you please provide the test SVG file? This will help us handle the issue more effectively.

Downloads.zip (10.5 KB)

医学谱图.zip (3.6 KB)

These are all my SVG test files.

The latest library version has fixed the issue you reported. We recommend that you try again.

医学谱图.zip (58.6 KB)

这是我的测试文件,从svg到vsdx,在从vsdx到svg

你好,使用aspose-diagram 26.7版本从svg转换到vsdx没问题,但是从vsdx转换到svg有不行了,之前的26.6版本是可以的。
Hello, there is no problem converting from SVG to VSX using the aspose-diagram 26.7 version, but the conversion from VSX to SVG doesn’t work. However, the 26.6 version was able to do it.
下面是我的代码:
Here is my code:
@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();
        }
    }
}

这是我的测试文件,从svg到vsdx,在从vsdx到svg
医学谱图.zip (58.6 KB)

We have received your reported issue and will promptly forward it to our technical support team for handling. Please bear with us.