Dxf to PDF Losing Transparency in MText

Hello,

We are using .NET Aspose.CAD version 21.9.0.0 and are having trouble converting text within a Dxf file to PDF if there is transparency.

As you can see, in the attached files, the Dxf file contains some sample text with the transparency set to 80 and it looks fine. When converting to PDF using the attached code, the transparency setting is lost and the text is rendered as fully opaque.

Code - https://www.dropbox.com/s/3dlkku9qiiwc44q/Code-AsposeLibraryTesting.zip?dl=0

Dxf - https://www.dropbox.com/s/3mlruhmdpdj6c64/WaterMarkTest.dxf?dl=0

Dxf Screenshot - https://www.dropbox.com/s/gh071hlivjva523/DxfScreenshot.png?dl=0

Pdf - https://www.dropbox.com/s/cozsoobmgdom00f/AddWatermark_out.pdf?dl=0

Please advise on a solution to this.

Thank you,
Kevin

Note: I did notice that your free online converter also does not preserve the transparency level when converting from Dxf → Pdf. https://products.aspose.app/cad/conversion/dxf-to-pdf

@kgrems

We need to investigate the issue on our end. A ticket with ID CADNET-8359 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

@mudassir.fayyaz

Thank you. I’ll keep an eye on this thread.
Please let me know if there’s anything else needed from me to help speed this along.

Kevin

@kgrems

We will share updates as soon as they will be shared.

@mudassir.fayyaz

Any update as to when this ticket will be worked on? I see it’s still marked “New” Status.

@kgrems

At present the issue is unresolved. We request for your patience and will share feedback with you as soon as it will be fixed.

@mudassir.fayyaz

Please provide an update for this. It’s been over a month now.

@kgrems
Working functionality for the feature you’ve requested will be available on Aspose.CAD release 21.12. Which will be available 17th of December 2021

@Denis.Demenko
Thank you for the previous update. It’s now after 12/17, is there an expected time for release of this bug fix?

@kgrems
Release is scheduled on tomorrow - December 24th. It will available on Aspose site and Nuget

@Denis.Demenko
This still doesn’t work. I’ve updated the Nuget package to 21.12 and the transparency is not preserved.

Dxf Source: watermarktest.zip (21.8 KB)
Pdf Output: AddWatermark_out.pdf (23.3 KB)
Nuget Screenshot: Nuget.png (30.2 KB)

I can provide the source again, but it’s the same project from above (except the Nuget package has been updated).

@kgrems,
could you please test if addition of this option DrawType =CadDrawTypeMode.UseObjectColor for the rasterizationOptions object allows to get the desired result?

@Oleksii.Gorokhovatskyi
That worked. Thank you!

The issues you have found earlier (filed as CADNET-8359) have been fixed in this Aspose.CAD for .NET 22.2 update. This message was posted using Bugs notification tool by Oleksii.Gorokhovatskyi