Declined
Last Updated: 02 Sep 2025 11:49 by ADMIN
ADMIN
Deyan
Created on: 01 Jun 2018 12:53
Category: PDFViewer
Type: Bug Report
0
PdfViewer: Inverted colors on Windows XP for CMYK images with DCTDecode filter
The issue is reproducible only on Windows XP. On newer versions of windows, the images are rendered as expected.

WORKAROUND: You may inherit DctDecode class in order to implement custom decoder. For instance, you may try calling DecodeWithJpegDecoder method from the base class as mentioned in the note of this documentation article:

http://docs.telerik.com/devtools/wpf/controls/radpdfviewer/customization-and-extensibility/customize-pdf-rendering

A sample implementation of these custom decoder may be seen below:

public class CustomDctDecode : DctDecode
{
    public override byte[] Decode(PdfObject decodedObject, byte[] inputData, DecodeParameters parms)
    {
        return DecodeWithJpegDecoder(inputData);
    }
}
1 comment
ADMIN
Milena
Posted on: 02 Sep 2025 11:48

We will not be providing a product fix, as Windows XP and the .NET Framework versions it supports are no longer maintained. 


As an alternative, you can implement a custom DCTDecode filter to handle the CMYK scenario. Detailed instructions are in the initial post.

 

 

Regards,
Milena
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.