We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert VSD/VSDX to SVG in Java using Aspose.Diagram - line color changes in output


I use Aspose Diagram 17.4 to save a Visio file into SVG format.
In the result, the colors of some lines changes, and some disappear. This is different with the origin.
Please check this issue and the attachment.

P.S. here is my code

public void asposeConvert() throws Exception {
String fileName = “Rack.vsd”;

Diagram d = new Diagram(“input/” + fileName);
SVGSaveOptions saveOp = new SVGSaveOptions();

File outputDir = new File(“output/” + fileName + “/”);
if (!outputDir.exists())

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

d.save(new FileOutputStream(“output/” + fileName + “/” + (i + 1) + “.svg”), saveOp);


Thank you for contacting support. We managed to replicate the said issue in our environment. It has been logged under the ticket ID DIAGRAMJAVA-50504 in our bug tracking system. We have linked your post this ticket and will keep you informed regarding any available updates. We are sorry for the inconvenience caused.

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