We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Dwg to pdf/png can not get right result

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

// Create an instance of PdfOptions
PngOptions pdfOptions = new PngOptions();
// Set the VectorRasterizationOptions property

// Export the DWG to PDF
image.save(dataDir + "H.png", pdfOptions);


I have observed your comments. Can you please share generated result and issue in details so that we may further investigate to help you out. Also please share which Aspose.CAD version you are using on your end.

H.pdf (15.7 KB)

Aspose.cad version is 17.4.
and i used it for evaluate. if this product suitable for us, i can buy a license.


I have worked with source code and file shared by you using Aspose.CAD for Java 17.4 and have been able to observe the issue. A ticket with ID CADJAVA-157 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with issue so that you may be automatically notified once issue will be fixed.

We are sorry for your inconvenience,