wpf diagram export pdf bug:RadialGradientBrush and LinearGradientBrush can not show color opacity

1 Answer 6 Views
Diagram
wu
Top achievements
Rank 1
Veteran
wu asked on 10 Oct 2025, 06:14 AM

when the RadDiagramShape background is set to  LinearGradientBrush or RadialGradientBrush ,if the GradientStop color is opacity color ,

After exporting the PDF, the transparency effect cannot be displayed,like this from SDK Sample(ExportToPDF_WPF project):

<telerik:RadDiagramShape.Background>
<RadialGradientBrush Center=" 0.5, 0.5" GradientOrigin="0.5, 0.5" RadiusX="0.5" RadiusY="0.5">
<RadialGradientBrush.GradientStops>
                                               <GradientStop Offset="0" Color="#4DE44F0F" />
                                               <GradientStop Offset="0.5" Color="#7E1513B9" />
                                               <GradientStop Offset="1" Color="#960FB814" />
</RadialGradientBrush.GradientStops>
</RadialGradientBrush>
</telerik:RadDiagramShape.Background>

UI display effect:

The effect after exporting PDF:

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 14 Oct 2025, 08:46 AM

Hello Wu,

The export to PDF example works with the Telerik's PdfProcessing library. The code in the example properly handles the opacity, but this is not applied in the final document during the export. That is a known issue in the PdfProcessing library, which you can find logged here. Currently, there is no workaround for this.

Regards,
Martin Ivanov
Progress Telerik

Your perspective matters! Join other professionals in the State of Designer-Developer Collaboration 2025: Workflows, Trends and AI survey to share how AI and new workflows are impacting collaboration, and be among the first to see the key findings.
Start the 2025 Survey
Tags
Diagram
Asked by
wu
Top achievements
Rank 1
Veteran
Answers by
Martin Ivanov
Telerik team
Share this question
or