With the following code and the attached file:
String path = "/path/to/file.vsd"; Diagram visioDiagram = new Diagram(path);
I get the following stack trace:
com.aspose.diagram.DiagramException: Error in element VisioDocument in \VisioDocument. null at com.aspose.diagram.hq.a(Unknown Source) at com.aspose.diagram.bp.load(Unknown Source) at com.aspose.diagram.ma.a(Unknown Source) at com.aspose.diagram.ma.a(Unknown Source) at com.aspose.diagram.Diagram.<init>(Unknown Source)
I am using aspose.diagram for java 19.9 on openjdk 8
If this document is truly corrupted, should a more relevant exception be thrown? If the document is not corrupted, is this a bug in aspose.diagram?