Completed
Last Updated: 05 Mar 2021 12:46 by ADMIN
Release LIB 2021.1.309 (9/3/2021)
Created by: Daniel
Comments: 2
Category: PDFViewer
Type: Bug Report
0

Hi Telerik Support

We use your Telerik PDF-Viewer since your last Version "UI for WPF R1 2021" which supports Type 3 fonts.
Now the version runs productive by our customers. But after a day, they found some special PDFs that doesn't work quite right with your PDF-Viewer.

In the appendix you will find the PDf-Files as samples for the bugs that i'm describing.
Because of data privacy, the PDF-Files are cutted and cropped.
Also a demo project is appended (It could also be reproduced with the demo Progress Telerik WPF UI for th PDF-Viewer).

First Problem: Blank Page

Hint: It seems that only a few PDF-Files from a specific program seems to be a problem.

  1. Open Demo "WpfAppPdfViewer.exe"
  2. Open the file sample_1_blank_page.pdf(see appendix)
  3. You will see only a blank page
  4. Open the same PDF-File in another PDF-Reader like Adobe Reader and you will see a scan with an illegible stamp of an address

Second Problem: Displaying data delayed

  1. Open Demo "Progress Telerik UI for WPF"
  2. Open the file sample_2_delayed_display.pdf (see appendix)
  3. You will see only a blank page
  4. Wait approx. 5-10 sec. and you will see the content of the PDF-File.

I would be glad for a quick possible solution for our customer.

Best regards

Serge Schoop

Unplanned
Last Updated: 05 Mar 2021 12:09 by ADMIN
According to the PDF specification: Codes are never longer than 12 bits; therefore, entry 4095 is the last entry of the LZW table.
Completed
Last Updated: 22 Feb 2021 14:59 by ADMIN
Release R1 2021 SP1
When importing a document containing a specific image encoded with JBIG2Decode an exception is thrown.
Completed
Last Updated: 12 Feb 2021 12:45 by ADMIN
Release LIB 2021.1.215 (15/2/2021)
When importing documents with Type 3 fonts and loading them in RadPdfViewer an ObjectDisposedException is thrown leading to blank pages.
Completed
Last Updated: 29 Jan 2021 16:11 by ADMIN
Release LIB 2021.1.201 (1/2/2021)

When importing a document containing Outlines (Bookmarks) containing Actions with an empty dictionary:

<</Title(Bookmarks)/Parent .../First .../Last .../Prev .../A<<>>/Count ...>

leads to an exception thrown: System.MissingMethodException: 'Cannot create an abstract class.'

Completed
Last Updated: 21 Jan 2021 09:25 by ADMIN
Release R1 2021
In specific occasions, when starting multiple background threads to import documents, an InvalidOperationException might be thrown saying "Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct." This issue is pretty hard to reproduce. 
Completed
Last Updated: 21 Jan 2021 09:25 by ADMIN
Release R1 2021
ADMIN
Created by: Boby
Comments: 0
Category: PDFViewer
Type: Bug Report
1
Even small documents (~30 kb) containing images encoded with CCITTFaxDecode filter can take about 10 seconds to be opened. In 2014 Q1 SP1 such documents load faster.
Completed
Last Updated: 20 Jan 2021 12:30 by ADMIN
Release R1 2021
ADMIN
Created by: Deyan
Comments: 5
Category: PDFViewer
Type: Feature Request
35
Implement import of documents containing Type 3 fonts.
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: 09 Dec 2020 14:58 by ADMIN
Release LIB 2020.3.1214 (07/14/2020)
When importing a document containing two trailers and the encryption object (Encrypt) is part of the fist xref table the document is not successfully decrypted and an exception is thrown.
Completed
Last Updated: 09 Dec 2020 12:52 by ADMIN
Release LIB 2020.3.1214 (07/14/2020)
This exception seems to be caused because the stream is not decrypted correctly and the stream data is corrupted. For instance when the stream is with FlateDecode filter the exception is InvalidDataException with message "Unknown compression method".
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: 27 Nov 2020 13:55 by ADMIN
Release LIB 2020.3.1130 (30/11/2020)
When modifying Interactive Forms TextBoxField's value the entered changes are preserved after is clicked out of the TextBoxField's editing area. However the changes are not applied when the click is performed on the save button.

As possible workaround you can raise a MouseLeftButtonDown event on the RadPdfViewer and after this execute the SaveAsCommand. For example:

private void SaveButton_Click(object sender, RoutedEventArgs e)
{
    MouseButtonEventArgs mouseEventArgs = new MouseButtonEventArgs(Mouse.PrimaryDevice, 0, MouseButton.Left)
    {
        RoutedEvent = FrameworkElement.MouseLeftButtonDownEvent
    };
 
    ((FrameworkElement)this.pdfViewer.FixedDocumentPresenter).RaiseEvent(mouseEventArgs);
    this.pdfViewer.CommandDescriptors.SaveAsCommandDescriptor.Command.Execute(null);
}
Unplanned
Last Updated: 26 Nov 2020 07:25 by ADMIN
Provide an event that is fired when all annotations are clicked. Currently, the AnnotationClicked event is not fired for all annotations. Perhaps we can use the same event and add a property that controls for which annotations the vent is fired. 
Unplanned
Last Updated: 12 Nov 2020 09:10 by ADMIN
Introduce a fallback mechanism for glyphs that cannot be found in the current font 
Completed
Last Updated: 11 Nov 2020 14:59 by ADMIN
Release LIB 2020.3.1116 (16/11/2020)
Exception when the inline image stream starts on a new row (No imaging component suitable to complete this operation was found).
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;
			}
		}
	}
}

Unplanned
Last Updated: 05 Nov 2020 12:18 by ADMIN
Expose event that allow on to track if the rotation is changed
Completed
Last Updated: 02 Nov 2020 12:00 by ADMIN
Release LIB 2020.3.1102 (02/11/2020)
When importing a document containing an image with ICC Based colorspace and the Alternate colorspace property is null, a NullReferenceException is thrown, which leads to a missing image in RadPdfViewer.
Unplanned
Last Updated: 29 Oct 2020 09:22 by ADMIN
PdfViewer: Show the DropDownList icon when the document contains ComboBox field