i test the example you share in github with my own file,but i do not get the right result!
the test code as following:
String dataDir = "F:/";
String srcFile = dataDir + "H.dwg";
H.zip (51.8 KB)
Image image = Image.load(srcFile);
// Create an instance of CadRasterizationOptions and set its various properties
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
rasterizationOptions.setBackgroundColor(Color.getWhite());
rasterizationOptions.setPageWidth(1600);
rasterizationOptions.setPageHeight(1600);
// Create an instance of PdfOptions
PngOptions pdfOptions = new PngOptions();
// Set the VectorRasterizationOptions property
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
// Export the DWG to PDF
image.save(dataDir + "H.png", pdfOptions);