Error when converting IFC to PDF

When converting the IFC sample attached to PDF I get an error and no output file is produced.

Using - aspose-cad-20.4-jdk16.jar

Using this code:
com.aspose.cad.Image image = com.aspose.cad.Image.load(inputPath);
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
PdfOptions pdfOptions = new PdfOptions();
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);, pdfOptions);

Error when converting IFC2PDF:
image.png (15.1 KB)

Attached IFC file here: (340.8 KB)


Using Aspose.CAD for Java 20.6, I have been able to reproduce the issue as well. A ticket with ID CADJAVA-750 has been created to further investigate and resolve the issue. We will share the good news with you as soon as the issue will be addressed.

The issues you have found earlier (filed as CADJAVA-750) have been fixed in this update.

After updating to “aspose-cad-20.8-jdk16.jar” I get the following errors in the console logs.

notSupported.PNG (16.2 KB)


Actually, your example contains IFC4X2 version where as we only support IFC2X3. other versions of IFC will be implemented later. For now, we have added a load exception message unsupported versions of IFC (for now it’s only IFC2X3 that we support).