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