Free Support Forum - aspose.com

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();
rasterizationOptions.setPageWidth(1600);
rasterizationOptions.setPageHeight(1600);
PdfOptions pdfOptions = new PdfOptions();
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
image.save(outputPath, pdfOptions);

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

Attached IFC file here:
sample.zip (340.8 KB)

@simon.wiseman,

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)

@simon.wiseman

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).