Unplanned
Last Updated: 07 May 2025 15:15 by Valentin
When displaying PDF-Files using PDFViewer, ContentElementsCanvas .RenderAsync uses reflection (DispatcherObjectUtils.ApplyDispatcher) to render Visuals on multiple threads.
However this leads to a memory leak since the dispatchers cant be GC'ed, see screenshot below.




The Screenshot is from the actual application we expirienced this issue with, the attached reproduction example is a boiled down version of what your code does.
If you wanna reproduce this on your own, create an application that uses PdfViewer that switches between many pdf files. The ammount of Dispatchers will grow steadily, probably to a total of the number of threads used by Task.Factory.

Unplanned
Last Updated: 07 May 2025 14:54 by Martin Ivanov

A memory leak in RadPdfViewer when the control gets removed from the visual tree.

To work this around, use the reflection API to access the leaking VisualTarget objects and call their Dispose method manually.

var pdfViewer = hostBorder.Child as RadPdfViewer;

if (pdfViewer != null)
{
    var canvas = viewer.ChildrenOfType<Canvas>().FirstOrDefault(x => x.GetType().Name.Contains("ContentElementsCanvas"));                
    var visualTargetsDictionaryField = canvas.GetType().GetField("pageNumberToVisualTarget", BindingFlags.NonPublic | BindingFlags.Instance);
    var visualTargetsDictionary = (Dictionary<int, List<VisualTarget>>)visualTargetsDictionaryField.GetValue(canvas);
    foreach (KeyValuePair<int, List<VisualTarget>> target in visualTargetsDictionary)
    {
        for (int i = 0; i < target.Value.Count; i++)
        {
            VisualTarget item = target.Value[i];
            item.RootVisual = null;
            item.Dispose();
        }
    }  
}
hostBorder.Child = null;
hostBorder.Child = new RadPdfViewer() { Document = newDocument };

In Development
Last Updated: 02 May 2025 10:25 by ADMIN
Scheduled for 2025 Q2 (May)
The image rendering of the signed document with indexed color space is incorrect when importing it.
In Development
Last Updated: 23 Apr 2025 09:42 by ADMIN
As a result, the glyphs are not measured and positioned properly. The issue applies to the TrueType and Type1 fonts.
In Development
Last Updated: 21 Mar 2025 09:14 by ADMIN
Scheduled for 2025 Q2 (May)
Having a file with a very thin border thickness is displayed with increased thickness when displaying a document inside RadPdfViewer.
In Development
Last Updated: 14 Mar 2025 08:26 by ADMIN
Scheduled for 2025 Q2 (May)
When importing a PDF file, its text can be missing.
Unplanned
Last Updated: 10 Mar 2025 10:39 by Martin Ivanov
Created by: Martin Ivanov
Comments: 0
Category: PDFViewer
Type: Feature Request
0
Add support for handwritten (graphometric information) signatures in the PdfViewer. 
Unplanned
Last Updated: 28 Feb 2025 05:32 by SF
PDF Signature(image) is displayed on the incorrect location when using annotations.
Completed
Last Updated: 12 Feb 2025 15:20 by ADMIN
Release 2025.1.205 (2025 Q1)
NullReferenceException when Type1 font with random bytes count ("lenIV") is set to 0.
Completed
Last Updated: 12 Feb 2025 15:19 by ADMIN
Release 2025.1.205 (2025 Q1)
ADMIN
Created by: Deyan
Comments: 0
Category: PDFViewer
Type: Feature Request
2
This action is usually linked to a Button field and with it, the user of the application may revert all field values to their defaults. 
Completed
Last Updated: 11 Feb 2025 07:40 by ADMIN
Release 2025.1.211 (2025 Q1)
ArgumentOutOfRangeException when PDFViewer is loaded async and one scrolls for some time.
Completed
Last Updated: 11 Feb 2025 07:40 by ADMIN
Release 2025.1.211 (2025 Q1)
Some colors are changed due to incorrect import of some graphic state colors.
Completed
Last Updated: 13 Jan 2025 06:57 by ADMIN
Release 2024.4.1219 (Preview)
PdfViewer: Invalid rendering with German culture (Regression). Some text is missing and the rendering is broken.
Duplicated
Last Updated: 08 Jan 2025 13:50 by ADMIN

Hi Telerik-Team,

the 2024.4.X release of UI for WPF seems to no longer render pdf files correctly. It looks like as if the PdfViewer just renders the document as a single huge page.

An application that uses those references:

<PackageReference Include="Telerik.Windows.Controls.for.Wpf.Xaml" Version="2024.3.924" />
<PackageReference Include="Telerik.Windows.Controls.FixedDocumentViewers.for.Wpf.Xaml" Version="2024.3.924" />
<PackageReference Include="Telerik.Windows.Documents.Core" Version="2024.3.806" />
<PackageReference Include="Telerik.Windows.Documents.Fixed" Version="2024.3.806" />
<PackageReference Include="Telerik.Windows.Zip" Version="2024.3.806" />

works as expected. Once you change those to:

<PackageReference Include="Telerik.Windows.Controls.for.Wpf.Xaml" Version="2024.4.1111" />
<PackageReference Include="Telerik.Windows.Controls.FixedDocumentViewers.for.Wpf.Xaml" Version="2024.4.1111" />
<PackageReference Include="Telerik.Windows.Documents.Core" Version="2024.4.106" />
<PackageReference Include="Telerik.Windows.Documents.Fixed" Version="2024.4.106" />
<PackageReference Include="Telerik.Windows.Zip" Version="2024.4.106" />

the renderer stops working.

I have attached a VS solution with a pdf file that reproduces this

Completed
Last Updated: 02 Jan 2025 12:05 by ADMIN
Release 2024.4.1219 (Preview)
Created by: n/a
Comments: 9
Category: PDFViewer
Type: Bug Report
3

Some lines on attached files are to thick. Other pdf programs shows that correctly. 

Regards
Janez

Duplicated
Last Updated: 06 Dec 2024 17:33 by ADMIN
ADMIN
Created by: Yoan
Comments: 0
Category: PDFViewer
Type: Bug Report
1
A specific file is not displayed in the viewer.
Unplanned
Last Updated: 21 Nov 2024 08:02 by Dimitar
Wrong color of lines due to Matrix Transformations applied to the Drawing.
Completed
Last Updated: 13 Nov 2024 08:50 by ADMIN
Release 2024.4.1106 (Q4 2024)
ADMIN
Created by: Mihail
Comments: 0
Category: PDFViewer
Type: Bug Report
1
The performance of loading the thumbnails is decreased with the removing of the cache in PdfViewer. 

Possible reason is that the pages are no longer loaded asynchronously.

Steps to reproduce:
- Open the SDK with the thumbnails for PDFViewer.
- Notice that the load of the thumbnails is slow.
Unplanned
Last Updated: 18 Oct 2024 11:40 by Martin Ivanov
Some lines could be missing in the PdfViewer when rendering line geometries.


The attached image shows the issue.

Unplanned
Last Updated: 16 Oct 2024 07:15 by Stenly
The import performance is reduced and the memory consumption is increased when XObject instances have many Shading elements.
1 2 3 4 5 6