Hi there,
I got a below error on convering “IFC” to “JPG”:
Caused by: java.lang.NullPointerException
at com.groupdocs.conversion.internal.c.a.cd.internal.ix.a.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.cd.internal.ix.a.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.cd.internal.ix.a.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.cd.internal.kJ.o.a(Unknown Source)
… 25 more
sample codes:
File srcFile = new File(“.\sample_npe.ifc”);
String convertedFile = new File(“.\sample_npe.jpg”).getAbsolutePath();
CadLoadOptions loadOptions = new CadLoadOptions();
loadOptions.setFormat(CadFileType.Ifc);
//loadOptions.setHideComments(true);
Converter converter = new Converter(srcFile.getAbsolutePath(),() → loadOptions);
ImageConvertOptions imagesaveOption = new ImageConvertOptions();
imagesaveOption.setFormat(ImageFileType.Jpg);
imagesaveOption.setPageNumber(1);
imagesaveOption.setPagesCount(1);
converter.convert(convertedFile, imagesaveOption);
JDK 1.8
groupdocs-conversion-23.10.jar
Attached a sample file, please advice.
sample_npe.zip (469.8 KB)
thanks,
James