Hi,
I’m trying to convert DWG file to PDFwith the code blow,
com.aspose.cad.Image image = com.aspose.cad.Image.load(srcFile.getAbsolutePath());
com.aspose.cad.imageoptions.CadRasterizationOptions rasterizationOptions = new com.aspose.cad.imageoptions.CadRasterizationOptions();
rasterizationOptions.setBackgroundColor(com.aspose.cad.Color.getWhite());
rasterizationOptions.setPageWidth(1600);
rasterizationOptions.setPageHeight(1600);
com.aspose.cad.imageoptions.PdfOptions options = new com.aspose.cad.imageoptions.PdfOptions();
options.setVectorRasterizationOptions(rasterizationOptions);
image.save(dstFile.getAbsolutePath(), options);
but I get exception below:
java.lang.AssertionError: Cannot read a name from the name table in a font.
at com.aspose.cad.internal.X.a.a(Unknown Source)
at com.aspose.cad.internal.H.A.b(Unknown Source)
at com.aspose.cad.internal.H.A.f(Unknown Source)
at com.aspose.cad.internal.H.A.a(Unknown Source)
at com.aspose.cad.internal.H.j.a(Unknown Source)
at com.aspose.cad.internal.H.j.<init>(Unknown Source)
at com.aspose.cad.internal.H.g.g(Unknown Source)
at com.aspose.cad.internal.H.g.f(Unknown Source)
at com.aspose.cad.internal.H.g.a(Unknown Source)
at com.aspose.cad.internal.H.i.a(Unknown Source)
at com.aspose.cad.internal.H.i.a(Unknown Source)
at com.aspose.cad.internal.H.i.a(Unknown Source)
at com.aspose.cad.internal.dL.a.a(Unknown Source)
at com.aspose.cad.internal.dy.g.a(Unknown Source)
at com.aspose.cad.internal.dy.g.a(Unknown Source)
at com.aspose.cad.internal.dy.g.a(Unknown Source)
at com.aspose.cad.internal.dJ.a.b(Unknown Source)
at com.aspose.cad.internal.dJ.c.b(Unknown Source)
at com.aspose.cad.internal.dy.a.a(Unknown Source)
at com.aspose.cad.internal.dy.b.a(Unknown Source)
at com.aspose.cad.internal.dn.b.a(Unknown Source)
at com.aspose.cad.internal.dn.c.a(Unknown Source)
at com.aspose.cad.internal.dy.a.export(Unknown Source)
at com.aspose.cad.Image.b(Unknown Source)
at com.aspose.cad.fileformats.cad.CadImage.b(Unknown Source)
at com.aspose.cad.Image.a(Unknown Source)
at com.aspose.cad.Image.saveInternal_internalized(Unknown Source)
at com.aspose.cad.Image.save(Unknown Source)
at com.aspose.cad.Image.save(Unknown Source)