http://docs.telerik.com/devtools/wpf/controls/radpdfviewer/document-model/exceptionhandling
The PdfPrintPreviewDialog should allow the end user to resize it and the page preview in it should scale accordingly. This would allow the user to have a better preview of the print settings.
To reproduce: public Form1() { InitializeComponent(); radPdfViewer1.DocumentLoaded += radPdfViewer1_DocumentLoaded; radPdfViewer1.LoadDocument(@"..\..\TestDocument.pdf"); } void radPdfViewer1_DocumentLoaded(object sender, EventArgs e) { var pdfViewerElement = sender as RadPdfViewerElement; if (pdfViewerElement != null) { var myDocumentToPrint = new RadPrintDocument(); myDocumentToPrint.AssociatedObject = pdfViewerElement; myDocumentToPrint.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0); myDocumentToPrint.Print(); } } Please refer to the attached screenshots and sample pdf. Workaround: Specify the RadPrintDocument.DefaultPageSettings.Margins property on a way to have the right margin greater than 0
When an image is actually consisting of a sequence of smaller images, sometimes white lines appear between the smaller images.
Add rotate view button.
To reproduce: - Just show and close a form that contains pdf viewer with a loaded document several times.
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;