Text shifted in result of saving in svg format

Hi Aspose team


We are working on saving Visio files into SVG format for cross-platform viewing, with Aspose Diagram 16.11.0 on Linux environment

Here is our code for conversion test:
License l = new License();
l.setLicense(“aspose.lic”);

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

System.out.println(d.getPages().getCount());
String dirName = UUID.randomUUID().toString();
File file = new File( dirName+"/");
file.mkdirs();

for (int i = 0; i < d.getPages().getCount(); i++) {

System.out.println(d.getPages().get(i).getName());
saveOp.setPageIndex(i);
d.save(new FileOutputStream(dirName + “/” + (i + 1) + “.svg”), saveOp);
}

In the result, some of the text are shifted right in the page 3 and 4.
Please check the image in the attachment.
And I also uploaded the result and the origin Visio file.

Is there any options in the Aspose lib to improve this?

Craig

Hi Craig,


Thank you for contacting support. We managed to replicate the problem misplaced text items. It has been logged under ticket ID DIAGRAMNET-51118 in our bug tracking system. Your post has also been linked to this ticket. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.

Hi Imran.RaFfque


I found another file and this issue also occurs on it in Linux Environment

I have uploaded a comparison image, the visio file, and the result.

Please investigate this file as well, and hope this helps.


Craig

Hi Craig,


Thank you for the details. We managed to replicate the said problem of displaced text items. It has been logged under ticket ID DIAGRAMJAVA-50457 in our bug tracking system. Your post has also been linked to this ticket. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.

The issues you have found earlier (filed as DIAGRAMNET-51118) have been fixed in Aspose.Diagram for .NET 20.6.

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