Unplanned
Last Updated: 18 Sep 2023 17:38 by Martin Ivanov

A memory leak occurs in the RadTreeView control used for the table of contents in the RadPdfViewerNavigationPane, when changing the DocumentSource of RadPdfViewer at runtime.

To work this around, you can get the RadTreeView used by RadPdfViewerNavigationPane and manually clear its internal item storage before assigning the new DocumentSource.

 

private void ReloadDocument()
{
	var navigationPane = this.pdfViewerNavigationPane;
	var navigationPaneTreeView = navigationPane.FindChildByType<RadTreeView>();
	if (navigationPaneTreeView != null)
	{
		object itemStorage = typeof(RadTreeView)
			.GetProperty("ItemStorage", BindingFlags.Instance | BindingFlags.NonPublic)
			.GetValue(navigationPaneTreeView);
		MethodInfo itemStorageClearMethod = itemStorage.GetType().GetMethod("Clear", BindingFlags.Instance | BindingFlags.NonPublic);
		itemStorageClearMethod.Invoke(itemStorage, null);		
	}
	
	this.DocumentSource = theNewDocumentSource;
}

 

Unplanned
Last Updated: 11 Aug 2023 07:50 by ADMIN
Slow loading of documents with big images structured from smaller ones
Unplanned
Last Updated: 27 Jul 2023 05:53 by Helen
Find is skipping the first match in a specific document.
Unplanned
Last Updated: 10 Jul 2023 08:28 by Mattia
Form XObject with Matrix property is displayed with misplaced position when imported with PdfProcessing
Unplanned
Last Updated: 07 Jun 2023 06:15 by Garrick
Printer change notification handle is being leaked when printing and inspecting with the app verifier.
Unplanned
Last Updated: 18 May 2023 09:03 by Muna
Loading the PdfViewer control outputs "Cannot find source for binding with reference 'ElementName=pdfViewer'".
Unplanned
Last Updated: 20 Apr 2023 15:18 by Margret
Created by: Margret
Comments: 1
Category: PDFViewer
Type: Bug Report
1
Bad image quality when rendering.
Unplanned
Last Updated: 20 Apr 2023 06:45 by Veli
KeyNotFoundException because of missing State Appearances.
Unplanned
Last Updated: 27 Mar 2023 13:52 by ADMIN

Observed when loading a document: 

Unplanned
Last Updated: 08 Feb 2023 08:25 by Dimitar
PDF form with multiline textbox - after flattening all text is not visible
Unplanned
Last Updated: 10 Jan 2023 09:02 by Martin

When making changes to Form fields then flattening them and invoking the viewer`s Save method an exception is thrown: System.Collections.Generic.KeyNotFoundException: 'The given key was not present in the dictionary.'

Code to reproduce the issue:

this.pdfViewer.Document.AcroForm.FlattenFormFields();

using (Stream output = File.OpenWrite("Exported.pdf"))
{
	this.pdfViewer.Save(output);
}
Workaround: Export the document using the PdfFormatProvider:
this.pdfViewer.Document.AcroForm.FlattenFormFields();

using (Stream output = File.OpenWrite("Exported.pdf"))
{
	PdfFormatProvider provider = new PdfFormatProvider();
	provider.Export(this.pdfViewer.Document, output);
}

Unplanned
Last Updated: 29 Sep 2022 10:57 by Brian
Created by: Brian
Comments: 0
Category: PDFViewer
Type: Bug Report
0
Some images with SMask applied are not rendered in the viewer.

Unplanned
Last Updated: 27 Sep 2022 07:30 by Hartmut
When the page is rotated the Stamp annotation is not rendered correctly:

Unplanned
Last Updated: 26 Sep 2022 13:20 by ADMIN
When RadPdfViewer is in text selection mode and the user is trying to select a word by double-clicking on it, the last letter of the word is not selected when the word is followed by some symbols like '.', ':', '(', '...'
Unplanned
Last Updated: 05 Sep 2022 10:16 by Mauro
VS 2022 designer exception when PdfViewer is dragged and dropped from the toolbox.
Unplanned
Last Updated: 23 Jun 2022 08:13 by ADMIN
Handle the cases when the page is rendered slowly and the document appears empty
Unplanned
Last Updated: 09 Jun 2022 10:57 by Darcy
Created by: Darcy
Comments: 0
Category: PDFViewer
Type: Bug Report
1
The PdfViewer has slow performance when rendering images that have large size but are scaled down.
Unplanned
Last Updated: 06 Jun 2022 07:27 by Rahul
An invalid certificate is not imported correctly and causes exception on export. We should be able to handle this and skip the import without breaking the file. 
Unplanned
Last Updated: 23 Mar 2022 07:23 by Joseph
The image quality is poor when rendering large images.
Unplanned
Last Updated: 22 Feb 2022 11:44 by Vojtech
PDFViewer crashes, when used on a tablet, Text selection is activated and text is selected in Touch mode.