Caused by: java.lang.Exception: com.aspose.diagram.DiagramException: Error in element Shape in \VisioDocument\Masters\Master[6]\PageSheet[00000000-0000-0000-0000-000000000000]\Shapes. newShape
at
File attached.
try {
InputStream stream = new FileInputStream(visioFile.getAbsolutePath());
// load diagram
Diagram diagram = new Diagram(stream);
File converted = PathUtils.createTempFilePdf();
// Save as PDF file format
diagram.save(converted.getAbsolutePath(), SaveFileFormat.PDF);
stream.close();
return converted;
}catch (Exception e) {
throw new Exception(e);
}<a class="attachment" href="/uploads/default/9026">visio_failure.zip</a> (70.1 KB)
visio_failure.zip (70.1 KB)
@ruhongcai,
We managed to replicate this error in our environment. It has been logged under the ticket ID DIAGRAMJAVA-50571 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates.
@ruhongcai,
The linked ticket ID DIAGRAMJAVA-50571 has been resolved and will be included in the next version 17.12 of Aspose.Diagram for Java API. We will notify you once the next version is published.
@ruhongcai,
The linked ticket ID DIAGRAMJAVA-50571 has been fixed. Please download and try the latest Hotfix version: Aspose.Diagram for Java 17.11.1, and then let us know how that goes into your environment.
@ruhongcai,
The fix of linked ticket ID DIAGRAMJAVA-50571 has been included in the full version 17.12. Please download and try the latest version 17.12 of Aspose.Diagram for Java API.
Thanks! Will keep you update.
Ruhong
The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan