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

Free Support Forum - aspose.com

CADJava not respecting size of drawing when converting to PDF


we are running into problems when generating pdf from the attached dwg. The PDF looks fine, when created via AutoDeskDWGTrueView/Export/Pdf, but is odd when created via AsposeCADJava.

Here is my example code:

File pdf = new File(cad.getParentFile(), cad.getName() + ".pdf");
System.out.println("convert " + cad.getAbsolutePath() + " to " + pdf.getAbsolutePath());

CadImage image = null;

    image = (CadImage) com.aspose.cad.Image.load(cad.getAbsolutePath());

    PdfOptions opts = new PdfOptions();
    CadRasterizationOptions rOpts = new CadRasterizationOptions();

    image.save(pdf.getAbsolutePath(), opts);

Here are the mentioned files:
TM_01.01.02.01.zip (257.9 KB)

Thanks in advance,



have worked with sample file shared by you and have been able to observe the issue. An issue with ID CADJAVA-573 has been created in our issue tracking system to investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

1 Like


any news on this issue? We are waiting for this fix to rollout CADJava at out customers site.




I like to inform that we are working on this issue and request for your patience. We will share good news with you soon.