The text position is incorrect when stored in svg format

Hi Aspose team,

I am using Aspose Diagram 17.1.0 to convert a Visio file to a SVG file.
But some text is shifted down in the result.

Here is the code I'm using:

Diagram d = new Diagram(filePath);
SVGSaveOptions saveOp = new SVGSaveOptions();

String dirName = UUID.randomUUID().toString();
File file = new File( dirName+"/");
file.mkdirs();

for (int i = 0; i < d.getPages().getCount(); i++) {
saveOp.setPageIndex(i);
d.save(new FileOutputStream(dirName + "/" + (i + 1) + ".svg"), saveOp);
}

And I also uploaded the origin Visio file.
Please help me figure it out what happend, thanks.

Hi Lai,


Thank you for sharing the sample file.

We have evaluated the presented scenario while using the latest version of Aspose.Diagram for Java 17.1.0, and we are able notice the said problem. In order to further investigate the matter, we have raised this incident as DIAGRAMJAVA-50466 in our bug tracking system. Please spare us little time to properly analyze the case and revert back with updates in this regard.

Hi again,

This is to update you that the ticket logged earlier as DIAGRAMJAVA-50466 has been marked resolved. We will share the fix in a couple of days with next revision of the API.

The issues you have found earlier (filed as DIAGRAMJAVA-50466) have been fixed in Aspose.Diagram for Java 17.02.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

@janetchu

Please try using Aspose.Diagram for Java 20.4.1 as it includes the fix against DIAGRAMJAVA-50487 issue.