Completed
Last Updated: 01 Dec 2020 12:59 by ADMIN
Release LIB 2020.3.1207 (07/12/2020)

When we render any PDF file with 'x' number of page count and try to enter page 'x+1' in telerik:CurrentPageTextBox and hit enter, it will enable the Previous Page RadButton and if we click Previous Page then it will freeze the application.

System.ArgumentOutOfRangeException: 'pageNo should be greater or equal than 1 and less or equal than 4. (Parameter 'pageNo')'

Workaround: A possible approach could be to attach to the CurrentPageTextBox` KeyDown event in order to restrict the input.

XAML: 

<telerik:CurrentPageTextBox x:Name="PART_CurrentPageNumberTextBox" 
							KeyDown="PART_CurrentPageNumberTextBox_KeyDown"
							Text="{Binding FixedDocumentViewer.CurrentPageNumber, Mode=TwoWay}"/>
Code-behind:

private void PART_CurrentPageNumberTextBox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
{
	TextBox textBox = sender as TextBox;
	if (textBox != null)
	{
		if (e.Key == System.Windows.Input.Key.Enter)
		{
			int pagesCount = this.pdfViewer.PagesCount;
			int currentPageNumber = this.pdfViewer.CurrentPageNumber;
			if (this.pdfViewer.Document != null && (currentPageNumber < 1 || currentPageNumber > pagesCount))
			{
				RadFixedPage currentPage = this.pdfViewer.CurrentPage;
				int pageNum = this.pdfViewer.Document.Pages.IndexOf(currentPage) + 1;
				this.pdfViewer.CurrentPageNumber = pageNum;
			}
		}
	}
}

Completed
Last Updated: 29 Sep 2020 13:15 by ADMIN
Release LIB 2020.3.1005 (05/10/2020)
Exception when importing text fragments with no text 
Completed
Last Updated: 09 Oct 2020 13:18 by ADMIN
Release LIB 2020.3.1012 (12/10/2020)

When importing a PDF document, opening the stream in using statement, and using the default constructor of the PdfDocumentSource class, an exception is thrown:

using (Stream stream = ofd.OpenFile())
{
	this.pdfViewer.DocumentSource = new PdfDocumentSource(stream);
}
Workaround: provide an implementation of PdfImportSettings with CopyStream set to true:
using (Stream stream = ofd.OpenFile())
{
	PdfImportSettings importSettings = new PdfImportSettings
	{
		CopyStream = true
	};

	this.pdfViewer.DocumentSource = new PdfDocumentSource(stream, importSettings);
}

Completed
Last Updated: 26 Oct 2020 07:14 by ADMIN
Release LIB 2020.3.1026 (26/10/2020)
Instances of RadFixedDocument and PdfFormatProvider are kept in memory by a WPF internal collection (_sizeChangedChain).
Unplanned
Last Updated: 05 Nov 2020 12:18 by ADMIN
Expose event that allow on to track if the rotation is changed
Unplanned
Last Updated: 10 Nov 2020 15:27 by ADMIN

When extracting text from a composite font the ToUnicode mapping should be used but when this mapping is missing the char codes must be mapped by constructing a secondary map from fonts ordering and registry. 

A possible workaround could be to register a TrueType font using the FontsRepository.RegisterFont() method:

FontsRepository.RegisterFont(new FontFamily(fontName), FontStyles.Normal, FontWeights.Normal, File.ReadAllBytes(pathToFont));
and then to iterate the document content and change the specific font with the registered one:
FontsRepository.TryCreateFont(new FontFamily(fontName), FontStyles.Normal, FontWeights.Normal, out FontBase font);

foreach (RadFixedPage page in document.Pages)
{
	foreach (ContentElementBase contentElement in page.Content)
	{
		if (contentElement is TextFragment textFragment)
		{
			if (textFragment.Font.Name == fontName)
			{
				textFragment.Font = font;
			}
		}
	}
}

Completed
Last Updated: 13 Feb 2023 15:36 by ADMIN
Release LIB 2023.1.220 (20 Feb 2023)
When the imported document contains font with embedded CMapFormat0Table an exception is thrown.
Unplanned
Last Updated: 16 Dec 2020 14:23 by ADMIN
Created by: Simeon
Comments: 0
Category: PDFViewer
Type: Feature Request
1
Enable the users to draw different shapes on the PDF page.
Completed
Last Updated: 18 Mar 2021 07:17 by ADMIN
Release LIB 2021.1.315 (15/3/2021)
When the image has inverted colors and the color space is of type Separation the document is not decoded correctly and it is rendered with inverted colors.
Unplanned
Last Updated: 25 Mar 2021 07:55 by ADMIN

According to the PDF specification (Adobe® Portable Document Format Version 1.7):
Append a rectangle to the current path as a complete subpath, with lower-left corner (x, y) and dimensions width and height in user space.

The operation: 

x y width height re

An invalid case:

0 - 595 -842 re

This leads to an exception thrown: System.NullReferenceException: 'Object reference not set to an instance of an object.'

Unplanned
Last Updated: 20 Apr 2021 13:03 by ADMIN
When the document contains an invalid code space range in the embedded CMap table the CMap table is not correctly imported, which leads to wrong character mapping in the text selection.
Completed
Last Updated: 14 Jun 2021 11:58 by ADMIN
Release R2 2021 SP1

The object definitions are split into several lines:

Completed
Last Updated: 12 Aug 2021 07:32 by ADMIN
Release LIB 2021.2.608 (08 Jun 2021)
Importing of documents containing many Path geometries leads to OutOfMemoryException due to many created InherentProperty and delegate instances.
Unplanned
Last Updated: 28 Jun 2021 07:14 by ADMIN

There are missing characters when importing documents containing Standard fonts with a Differences array defined in the Encoding, which contains characters that do not fit in the first 255 glyph definitions in the font. Most of these characters are the ones with an accent such as "ccaron" (č).

Completed
Last Updated: 03 Feb 2023 08:37 by ADMIN
Release LIB 2023.1.206 (6 Feb 2023)
Field values are lost on import-export using the PdfFormatProvider.
Completed
Last Updated: 20 Sep 2021 09:04 by ADMIN
Release LIB 2021.3.920 (20 Sep 2021)
When trying to digitally sign a document an exception is thrown: System.NullReferenceException: 'Object reference not set to an instance of an object.'
Completed
Last Updated: 26 Jun 2023 12:15 by ADMIN
Release LIB 2023.2.703 (03 Jul 2023)

When the first symbol in the text string array is empty the text translation is not taken into account.

/f-0-1 1 Tf
[<>-3775<0006>15<000700080002>15<0009>]TJ

This leads to a letter misplacement (too far from each other or overlapping each other).

Unplanned
Last Updated: 07 Oct 2021 11:23 by ADMIN

When importing a document with a missing state separator (e.g. linefeed) in the object stream (ObjStm) an exception is thrown: System.InvalidCastException: 'Unable to cast object of type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfDictionary' to type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfInt'.'

А possible workaround could be handling the exceptions: Handling Exceptions.

Completed
Last Updated: 02 Feb 2023 11:18 by ADMIN
Release LIB 2023.1.206 (6 Feb 2023)

The rendering of the image is not fully parsed and the next attribute cannot be properly read. 

System.InvalidCastException: 'Unable to cast object of type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfArray' to type 'Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.Model.Types.PdfInt'.'

Unplanned
Last Updated: 27 Oct 2021 13:34 by ADMIN

While all the pages and components of the control are rendered on the image, the content is completely missing from it. The issue is a regression caused by the migration of the model and its async rendering introduced in R3 2020.

Workaround: Fallback to the old rendering engine:

  • Changing the default behavior:

 this.pdfViewer.DefaultImportSettings.UseOldRendering = true;

  • Setting the property to the format provider used to show the document:

PdfImportSettings settings = PdfImportSettings.ReadOnDemand;
settings.UseOldRendering = true;