Getting IllegalStateException: This is not a structured storage file,when trying to convert vsd file to PDF file

Hi
We are trying to convert a vsd file (.vsd) to a pdf file using Aspose Diagram for Java API.

It is giving this error.

java.lang.IllegalStateException: This is not a structured storage file.
at com.aspose.diagram.i97.(Unknown Source)
at com.aspose.diagram.z_.b(Unknown Source)
at com.aspose.diagram.z_.(Unknown Source)
at com.aspose.diagram.v8.(Unknown Source)
at com.aspose.diagram.e8.a(Unknown Source)
at com.aspose.diagram.e8.a(Unknown Source)
at com.aspose.diagram.Diagram.(Unknown Source)


The code snippet used to convert is as follows:

import com.aspose.diagram.Diagram;
import com.aspose.diagram.SaveFileFormat;
String filePath = “D:\testpdf\PR001467.vsd”;
String cfilePath = “D:\testpdf1\PR001467.pdf”;
Diagram diagram;
try {
diagram = new Diagram(filePath);
diagram.save(cfilePath, SaveFileFormat.PDF);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

Uploading the vsd file.

file.zip (48.0 KB)

Aspose diagram 23.7 jar is being used

Can you let us know what may be the issue?

Thanks
Rama

@Rama_Menon
Thanks for the template vsd file.
I have tested your scenario/case using Aspose diagram 23.7 and our latest version 24.3 .
All works fine and as expected.
Please check the output file in the attachment.
output.pdf (57.2 KB)

So please kindly use latest version. If you still find the issue with latest version, then please give more details. We will check your issue soon.
Thanks.