Converting DWG to PNG

Hello.

I am evaluating Aspose.CAD Java version 20.12.

I am using it to convert DWG file to PDF or PNG file. It works most of the times, but for some DWG files, com.aspose.cad.Image.load just hangs and never returns.

Can you help me why this happens?

Here is the link for the file causing the problem.

And the source is

objImage = com.aspose.cad.Image.load(sourcePath);

CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
rasterizationOptions.setPageWidth(width);
rasterizationOptions.setPageHeight(height);
rasterizationOptions.setNoScaling(false);
rasterizationOptions.setDrawType(CadDrawTypeMode.UseObjectColor);

PngOptions pngOptions = new PngOptions();
pngOptions.setVectorRasterizationOptions(rasterizationOptions);

objImage.save(destPath, pngOptions);

This topic has been moved to the related forum: Converting DWG to PNG - Free Support Forum - aspose.com