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)