Declined
Last Updated: 14 Feb 2019 16:16 by ADMIN
Stéphane
Created on: 11 Feb 2019 16:11
Category: PDFViewer
Type: Bug Report
1
RadPdfViewer does'nt render jpg image inside a pdf document properly : blue bands appear inside image.
  • Create new WPFApplication.
  • Add a RadPdfViewer to the main window
<Window x:Class="YourProject.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:MaquetteTelerikPDFViewer"
        mc:Ignorable="d"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"      
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <telerik:RadPdfViewer x:Name="pdfViewer"/> 
    </Grid>
</Window>
  • Open the pdf file
    public partial class MainWindow: Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        protected override void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);
            using(Stream stream = new FileStream(@"radExport.pdf",FileMode.Open,FileAccess.Read)){
                pdfViewer.Document = new PdfFormatProvider(stream).Import();
            }
        }
    }

1 comment
ADMIN
Georgi
Posted on: 14 Feb 2019 16:16
Hello Stéphane,

Thank you for sharing the document with us.

The issue you are encountering is related to the specific image compression parameters used in this document. We have logged item related to this issue: Wrong pixel colors when image is compressed with FlateDecode and PNG predictor parameters. Please, make sure to subscribe for any status changes by clicking the Follow button. I added vote on your behalf to increase the priority of the task.

I will proceed with changing the status of this item to "Declined" as a duplicate of the logged item.

Regards,
Georgi
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.