DWG to PDF conversion, layer color is not preserved

Hi,

I saved a DWG file as a PDF file, the layers are recovered but they are in black and white, can you tell me how to recover the color of the original file?

In addition, the convention is very slow, is it possible to speed it up?

I have attached the source code and files

Thank you Best regards

V13-PG-13-ULMS-N5 indI3.zip (3.0 MB)

Save with DWG TrueView.pdf (1.5 MB)

Calques2D.zip (782 Bytes)

@ISIWARE,
Hi.
Please apply this option to get color result:

rasterizationOptions.DrawType = CadDrawTypeMode.UseObjectColor;

As for the performance we will look at this problem in more details in the scope of the issue mentioned below, but I’m not sure we can improve this a lot as there are 48K of entities (including 1K blocks) which require some time to process.

@ISIWARE
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CADNET-9374

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Thanks with this option I recover the color.

Indeed the file is large, I am waiting for your feedback to know how to implement the functionality in our software.

Cordially