DWG to PDF - Unexpected 2D output + shaded output possible?

Hi,

we are trying to get a shaded output of this DWG file dwg-sample.zip, is this even possible?

The follwing code is currently used (com.aspose:aspose-cad:21.8):

CadImage image = (CadImage) Image.load(config.getInputFilepath().toString());
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
rasterizationOptions.setPageWidth(2000);
rasterizationOptions::setPageHeight(2000);
PdfOptions pdfOptions = new PdfOptions();
pdfOptions.setVectorRasterizationOptions(rasterizationOptions);
image.save(config.getOutputFilepath().toString(), pdfOptions);

Furthermore the current 2D output ID043030919183-0101.pdf
does also not look like it is e.g. when viewing in Autodesk DWG TrueView 2022 Autodesk DWG TrueView - ID043030919183-0101.dwg.png

@danfoss
We’ve added task CADNET-8441 into our roadmap to cover missing primitives.

1 Like