CADJava not respecting size of drawing when converting to PDF


#1

Hi,

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;

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

    FileTools.mkdirs(pdf.getParentFile());
    PdfOptions opts = new PdfOptions();
    CadRasterizationOptions rOpts = new CadRasterizationOptions();
    opts.setVectorRasterizationOptions(rOpts);


    image.save(pdf.getAbsolutePath(), opts);
}
finally
{
    StreamTools.close(image);
}

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

Thanks in advance,

Felix


#2

@regnete,

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.


#3

@Adnan.Ahmad,

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

Thx,

Felix


#4

@regnete,

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