Free Support Forum - aspose.com

Where to download cad for java 20.6?

We are using cad for java 20.1 for DWG to PDF converting ,and we are facing process hangs and memory leak issues. Then I checked the 20.6 release notes we see some issues might resolved in 20.6 ( related enhancements: CADJAVA-737, CADJAVA-711), but in the repository the latest version is 20.4, so anyone could help us to get 20.6 version, or can we have an ETA of it?

@husong1,

We are in process of publishing the latest version at the moment. We request for your patience till the time the product is available online before weekend.

Got it ,tks for the reply

@husong1,

You are welcome. You may check the new release later today or tomorrow in our download section. We will anyways be sharing notification with you too for the associated issues in release notes.

Hello mudassir, we have upgraded to 20.6,when converting dwg to pdf we still met process hangs and memory issues(jdk1.8),I attach the source code and error here, could please take a look? Tks in advance。

source code***
package com.testDwg;

import com.aspose.cad.Color;
import com.aspose.cad.fileformats.cad.CadDrawTypeMode;
import com.aspose.cad.imageoptions.CadRasterizationOptions;
import com.aspose.cad.imageoptions.PdfOptions;

public class DwgToPdfConverter {

public static void main(String args[]) {
    String srcFile = "C://Users//KS//IdeaProjects//testDwgFile//files//testDwg1.dwg";
    String tgtFile = "C://Users//KS//IdeaProjects//testDwgFile//files//output//testDwg1.pdf";

    new DwgToPdfConverter().convertDwgToPdf(srcFile, tgtFile);
}

public void convertDwgToPdf(String srcFile, String tgtFile) {
    try {
        System.out.println("Start Loading source file");
        com.aspose.cad.Image objImage = com.aspose.cad.Image.load(srcFile);
        PdfOptions pdfOptions = new PdfOptions();
        pdfOptions.setVectorRasterizationOptions(getRasterizationOptions());
        System.out.println("Start convert source file");
        objImage.save(tgtFile, pdfOptions);
        objImage.close();
        System.out.println("End Convert");
    } catch (Exception e) {
        System.out.println("convertDwgToPdf() exception: " + e.getMessage());
    }
}

public CadRasterizationOptions getRasterizationOptions() {
    CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
    rasterizationOptions.setBackgroundColor(Color.getWhite());
    rasterizationOptions.setPageWidth(3200);
    rasterizationOptions.setPageHeight(3200);
    rasterizationOptions.setDrawType(CadDrawTypeMode.UseObjectColor);
    return rasterizationOptions;
}

}

error*
java.lang.RuntimeException: Error during PDF export: com.aspose.cad.internal.p.k : com.aspose.cad.internal.p.k : com.aspose.cad.internal.p.k : com.aspose.cad.internal.p.L : com.aspose.cad.internal.p.M : com.aspose.cad.internal.p.O : GC overhead limit exceeded[ com.aspose.cad.internal.aC.m.a
-1 in null
com.aspose.cad.internal.aC.m.b
-1 in null
com.aspose.cad.internal.aC.m.a
-1 in null
com.aspose.cad.internal.F.aa.a
-1 in null
com.aspose.cad.internal.n.h.d
-1 in null
com.aspose.cad.internal.t.bo.b
-1 in null
com.aspose.cad.internal.t.bo.a
-1 in null
com.aspose.cad.internal.t.ba.a
-1 in null
com.aspose.cad.internal.t.aI.b
-1 in null
com.aspose.cad.internal.t.aI.a
-1 in null
com.aspose.cad.internal.t.aA.a
-1 in null
com.aspose.cad.internal.t.aP.a
-1 in null
com.aspose.cad.internal.p.O.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.M.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.L.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.k.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.k.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.k.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.I.a
-1 in null
com.aspose.cad.internal.t.aP.a
-1 in null
com.aspose.cad.internal.fx.c.a
-1 in null
com.aspose.cad.internal.fx.a.b
-1 in null
com.aspose.cad.internal.fx.c.b
-1 in null
com.aspose.cad.internal.eS.a.a
-1 in null
com.aspose.cad.internal.eS.a.export
-1 in null
com.aspose.cad.z.a
-1 in null
][ com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.M.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.L.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.k.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.k.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.k.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.I.a
-1 in null
com.aspose.cad.internal.t.aP.a
-1 in null
com.aspose.cad.internal.fx.c.a
-1 in null
com.aspose.cad.internal.fx.a.b
-1 in null
com.aspose.cad.internal.fx.c.b
-1 in null
com.aspose.cad.internal.eS.a.a
-1 in null
com.aspose.cad.internal.eS.a.export
-1 in null
com.aspose.cad.z.a
-1 in null
com.aspose.cad.internal.b.e.invoke
-1 in null
com.aspose.cad.system.Threading.j.invoke
-1 in null
com.aspose.cad.system.Threading.n.run
-1 in null
java.lang.Thread.run
745 in Thread.java
][ com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.L.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.k.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.k.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.k.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.I.a
-1 in null
com.aspose.cad.internal.t.aP.a
-1 in null
com.aspose.cad.internal.fx.c.a
-1 in null
com.aspose.cad.internal.fx.a.b
-1 in null
com.aspose.cad.internal.fx.c.b
-1 in null
com.aspose.cad.internal.eS.a.a
-1 in null
com.aspose.cad.internal.eS.a.export
-1 in null
com.aspose.cad.z.a
-1 in null
com.aspose.cad.internal.b.e.invoke
-1 in null
com.aspose.cad.system.Threading.j.invoke
-1 in null
com.aspose.cad.system.Threading.n.run
-1 in null
java.lang.Thread.run
745 in Thread.java
][ com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.k.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.k.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.k.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.I.a
-1 in null
com.aspose.cad.internal.t.aP.a
-1 in null
com.aspose.cad.internal.fx.c.a
-1 in null
com.aspose.cad.internal.fx.a.b
-1 in null
com.aspose.cad.internal.fx.c.b
-1 in null
com.aspose.cad.internal.eS.a.a
-1 in null
com.aspose.cad.internal.eS.a.export
-1 in null
com.aspose.cad.z.a
-1 in null
com.aspose.cad.internal.b.e.invoke
-1 in null
com.aspose.cad.system.Threading.j.invoke
-1 in null
com.aspose.cad.system.Threading.n.run
-1 in null
java.lang.Thread.run
745 in Thread.java
][ com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.k.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.k.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.I.a
-1 in null
com.aspose.cad.internal.t.aP.a
-1 in null
com.aspose.cad.internal.fx.c.a
-1 in null
com.aspose.cad.internal.fx.a.b
-1 in null
com.aspose.cad.internal.fx.c.b
-1 in null
com.aspose.cad.internal.eS.a.a
-1 in null
com.aspose.cad.internal.eS.a.export
-1 in null
com.aspose.cad.z.a
-1 in null
com.aspose.cad.internal.b.e.invoke
-1 in null
com.aspose.cad.system.Threading.j.invoke
-1 in null
com.aspose.cad.system.Threading.n.run
-1 in null
java.lang.Thread.run
745 in Thread.java
][ com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.k.a
-1 in null
com.aspose.cad.internal.p.n.a
-1 in null
com.aspose.cad.internal.p.I.a
-1 in null
com.aspose.cad.internal.t.aP.a
-1 in null
com.aspose.cad.internal.fx.c.a
-1 in null
com.aspose.cad.internal.fx.a.b
-1 in null
com.aspose.cad.internal.fx.c.b
-1 in null
com.aspose.cad.internal.eS.a.a
-1 in null
com.aspose.cad.internal.eS.a.export
-1 in null
com.aspose.cad.z.a
-1 in null
com.aspose.cad.internal.b.e.invoke
-1 in null
com.aspose.cad.system.Threading.j.invoke
-1 in null
com.aspose.cad.system.Threading.n.run
-1 in null
java.lang.Thread.run
745 in Thread.java
]
at com.aspose.cad.internal.fx.a.b(Unknown Source)
at com.aspose.cad.internal.fx.c.b(Unknown Source)
at com.aspose.cad.internal.eS.a.a(Unknown Source)
at com.aspose.cad.internal.eS.a.export(Unknown Source)
at com.aspose.cad.z.a(Unknown Source)
at com.aspose.cad.internal.b.e.invoke(Unknown Source)
at com.aspose.cad.system.Threading.j.invoke(Unknown Source)
at com.aspose.cad.system.Threading.n.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
Caused by: class com.aspose.cad.internal.Exceptions.ArgumentException: com.aspose.cad.internal.p.k : com.aspose.cad.internal.p.k : com.aspose.cad.internal.p.k : com.aspose.cad.internal.p.L : com.aspose.cad.internal.p.M : com.aspose.cad.internal.p.O : GC overhead limit exceeded[ com.aspose.cad.internal.aC.m.a
-1 in null
com.aspose.cad.internal.aC.m.b
-1 in null
com.aspose.cad.internal.aC.m.a
-1 in null
com.aspose.cad.internal.F.aa.a

@husong1,

Can you please share the source DWG file that is creating issue on your end so that we may proceed with investigation.

These are secret documents that we can’t publish on the forum, we are tring to reproduce the issue on ordinary file and keep you informed if any progress.

@husong1,

Sure, we are here to help you. If you want share these for investigation, you can share with us privately using Message option. You will be required to click my name icon and a popup will appear. Then use Message option to send privately.