Export DWG to PDF with Layers visible in PDF

Hi,
Is it possible to export a dwg to PDF and the layers of the dwg be exported as PDF layers that you can view and turn off in adobe acrobat reader?
image.png (32.1 KB)

@connor.ferguson,
Hello. I’m afraid this is not possible now. Please, give us some time, we will look at this problem.

@connor.ferguson,
Hello. Could you please test if this example is useful:

PdfOptions pdfOptions = new PdfOptions();
pdfOptions.Layers = cadImage.Layers.GetLayersNames().ToArray();
pdfOptions.VectorRasterizationOptions = rasterizationOptions;
cadImage.Save(“result.pdf”, pdfOptions);

That seems to work, thanks Oleksii :slight_smile:

1 Like

@connor.ferguson,
welcome, we were happy to help :slight_smile: