Hi,
While testing the conversion of DWG to PDF, using Aspose.CAD for Java v17.12, I found some layer lines not shown in the output pdf file
My dwg file dwg.zip (206.0 KB)
and the output pdf pdf.zip (52.5 KB)
My env is Ubuntu 14.04 with openjdk64-1.7.0.151
My code is below
CadImage cadImage = (CadImage) Image.load(srcFile.getAbsolutePath());
CadRasterizationOptions rasterizeOptions = new CadRasterizationOptions();
rasterizeOptions.setPageWidth(1200);
rasterizeOptions.setPageHeight(1200);
rasterizeOptions.setAutomaticLayoutsScaling(true);
rasterizeOptions.setDrawType(CadDrawTypeMode.UseObjectColor);
rasterizeOptions.setLayouts(new String[]{"Model"});
PdfOptions pdfOptions = new PdfOptions();
pdfOptions.setVectorRasterizationOptions(rasterizeOptions);
cadImage.save(dstFile.getAbsolutePath(), pdfOptions);