Use a custom JPXDecode filter with RadPdfViewer
Product Version | Product | Author | Last modified |
---|---|---|---|
2014_3_1104 | RadPdfViewer for WinForms | Dimitar Karamfilov | December 25, 2014 |
Problem
Currently, RadPdfViewer does not support the JPXDecode filter and documents that uses this filter will display a blank pages.
Solution
Use a custom filter to view such documents. The following example uses the OpenJPEG library to convert the images that are using this particular filter. To use this library with RadPdfViewer you should create a custom class that implements the IPdfFilter interface. Then you can perform the conversion in the Decode method:
Currently, you can use the above class by calling the RegisterFilter method with reflection:
You can download a VB and C# project from the following link.