Free Support Forum -

Converting DWG to PNG


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();

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


Can you please share the Java and Operating System details on your end.

It is being developed in Spring Boot Maven project in Windows 10 Pro, and tested in CentOS 6.10.

The java JDK installed is version 13.0.2 in Windows.

We are testing Aspose CAD Java for converting DWG file to PDF and PNG.

It seems that the opening and converting takes long time, and sometimes hangs if the DWG file size is more than 20Mb.

Thank you.


I have created a ticket with ID CADJAVA-10130 in our issue tracking system to further investigate the issue on our end. This thread has been linked with the issue so that you may be notified once the issue will be addressed.