Load/Save VSDX using Aspose.Diagram for .NET without modification - output is changed

I have found a problem. I have visio document. I open it with Aspose.Diagram, then save it (without any modification), then open it again and then save as pdf or html. It throws exception then. If I don’t save it, then everything works good:

        string fileVisio = @"7748d2cf-c697-4226-8c0c-ab2800b4b62b.vsdx";
        var fileDest = Path.Combine(txtDestinationFolder.Text, fileVisio);
        var doc = new Diagram(fileVisio);
        doc.Save(fileDest, SaveFileFormat.VSDX);
        doc = new Diagram(fileDest);

        
        var file = Path.Combine(txtDestinationFolder.Text, "docNew.html");
        var filePdf = Path.Combine(txtDestinationFolder.Text, "docNew.pdf");

        var options = new HTMLSaveOptions();
        options.SaveToolBar = false;
        doc.Save(file, options);//this throws exception
        doc.Save(filePdf,SaveFileFormat.PDF);//this throws exception

VisioTest.zip (28.9 KB)

@mmdevelopment

We are checking it and will get back to you shortly.

@mmdevelopment

We were able to replicate the issue in our environment and have logged it as DIAGRAMNET-51749 in our issue tracking system. We will surely look into details of it and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.

@mmdevelopment

Would you kindly try using this hotfix i.e. Aspose.Diagram for .NET 20.1.1 and let us know in case issue still persists.

It works now, thanks!

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