In aspose.CAD, Java, how to convert dxf file to dwg files?

hello engineer,I tried to convert the DXF file to DWG file, and the code is as follows. The program throws an exception.

code demo:
1721448006191.png (23.0 KB)

exception info:
class com.aspose.cad.cadexceptions.ImageSaveException: Image saving failed. —> class com.aspose.cad.cadexceptions.ImageSaveException: Image export failed. Could not initialize class com.aspose.cad.fileformats.cad.DwgImage —> class com.aspose.cad.internal.Exceptions.InvalidOperationException: Could not initialize class com.aspose.cad.fileformats.cad.DwgImage

How to convert DXF file to DWG file in Java? I am looking forward to your reply. Thank you!

@fsolsh,
your code is fine, could you please share the initial DXF file too so we can exactly find the problem.

output.zip (3.7 MB)

@oleksii.gorokhovatskyi
hi, this is the dxf file

@fsolsh,
we can confirm the issue, we have created CADJAVA-11695 to investigate and fix it.