Handled InvalidDataException occurs while Zip Library tries to decompress wrongly decrypted stream.
Import documents that use this type of encryption. Currently, a handled NotSupportedEncryptionException with message "The encryption method with code 5 is not supported." is thrown while importing such a document.
Workaround: subscribe the RadPdfViewer control to the ViewerModeChanged event and in the handler, if the viewer mode is set to Pan, call the HideCaret method of the PdfViewerElement
private void radPdfViewer1_ViewerModeChanged(object sender, EventArgs e)
{
if (this.radPdfViewer1.ViewerMode == Telerik.WinControls.UI.FixedDocumentViewerMode.Pan)
{
this.radPdfViewer1.PdfViewerElement.HideCaret();
}
}
Workaround: update manually the RadPdfViewerNavigator.CurrentPageTextBox.
If the document is using fonts that are not embedded and are not installed on client machine the text is not displayed.
To reproduce: 1. Drag and drop RadPdfViewer and RadPdfViewerNavigator 2. Load attached file from ticket 3. Click PrintPreview button from navigator and you will see that NullRefference exception is thrown. Workaround: You can set the ShowPrintPreview property to false of RadPrintViewNavigator this.radPdfViewerNavigator1.ShowPrintPreview = false;
NullReferenceException when the document annotations are imported.
Download the attached pdf document and open it with RadPDfViewer and Adobe Reader. You will see that our viewer renders it with the black and white colors inverted.
To reproduce: 1.Load a document 2.Click the print button on the RadPdfViewerNavigator Please refer to the attached gif file. The sample pdf file is attached as well.
Open large file in RadPDFViewer. Navigate from page 70 to page 250 or enter number by hand and you will notice that the page is opened slowly.
Loading a page with large images (e.g. 2 JPEG images 2500x3500 each) takes a lot of time. The majority of the time is spent in decoding the images.