In Development
Last Updated: 26 Jul 2024 13:25 by ADMIN

Changing the value of the DocumentSource property at runtime causes the RadPdfViewer to display a busy indicator and not update the displayed PDF file with the new one.

To work this around, derive from the RadPdfViewer and create a new dependency property for the property of the type of PdfDocumentSource (for example, from your view model). In its callback method, call the SetDocumentSource method of the derived RadPdfViewer by passing the new value:

public class MyPdfViewer : RadPdfViewer
{
    public PdfDocumentSource PdfDocumentSource
    {
        get { return (PdfDocumentSource)GetValue(PdfDocumentSourceProperty); }
        set { SetValue(PdfDocumentSourceProperty, value); }
    }

    public static readonly DependencyProperty PdfDocumentSourceProperty =
        DependencyProperty.Register("PdfDocumentSource", typeof(PdfDocumentSource), typeof(MyPdfViewer), new PropertyMetadata(new PropertyChangedCallback(OnDocumentSourceChanged)));

    private static void OnDocumentSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
    {
        MyPdfViewer viewer = (MyPdfViewer)d;

        viewer.SetDocumentSource((PdfDocumentSource)e.NewValue);
    }
}
<local:MyPdfViewer x:Name="pdfViewer" PdfDocumentSource="{Binding MyViewModelPropertyOfTypePdfDocumentSource}" />
Unplanned
Last Updated: 25 Jul 2024 13:06 by Stenly
Having a file with a very thin border thickness is displayed with increased thickness when displaying a document inside RadPdfViewer.
Unplanned
Last Updated: 24 Jul 2024 12:51 by ADMIN
ADMIN
Created by: Nikolay Demirev
Comments: 2
Category: PDFViewer
Type: Feature Request
3
The default WPF PrintDialog cannot print asynchronously when it is shown in UI. However, you may see the demo in this forum post showing how to create custom PrintDialog and perform async printing with it:
http://www.telerik.com/forums/pdfviewer-print-makes-ui-unresponsive#js0YdzFWc0Oa8C3g6a18lg
Unplanned
Last Updated: 11 Jul 2024 15:58 by Stenly
Currently, the Save button of the RadPdfViewerToolBar element raises the SaveAsPdfDocumentCommand, which opens a new SaveFileDialog in its Execute method. We could raise an event there, in order for this action to be intercepted if the PDF file is saved.
Completed
Last Updated: 02 Jul 2024 05:51 by ADMIN
Release 2024.2.701 (Preview)
The image inside an XObejct is not shown in the correct position. 
Completed
Last Updated: 01 Jul 2024 11:22 by ADMIN
Release 2024.2.701 (Preview)
ArgumentException when there are bookmarks that point to the same location: System.ArgumentException: 'An item with the same key has already been added.
Completed
Last Updated: 01 Jul 2024 11:22 by ADMIN
Release 2024.2.701 (Preview)
 Form XObject that contains path with a Matrix position is not rendered.
Unplanned
Last Updated: 28 Jun 2024 10:20 by ADMIN
When displaying PDF-Files using PDFViewer, ContentElementsCanvas .RenderAsync uses reflection (DispatcherObjectUtils.ApplyDispatcher) to render Visuals on multiple threads.
However this leads to a memory leak since the dispatchers cant be GC'ed, see screenshot below.




The Screenshot is from the actual application we expirienced this issue with, the attached reproduction example is a boiled down version of what your code does.
If you wanna reproduce this on your own, create an application that uses PdfViewer that switches between many pdf files. The ammount of Dispatchers will grow steadily, probably to a total of the number of threads used by Task.Factory.

In Development
Last Updated: 16 May 2024 05:27 by ADMIN
Text is not displayed when using embedded subset of the ToyotaTypeLight font.
In Development
Last Updated: 15 May 2024 06:28 by ADMIN
Scheduled for 2024.2.426 (2024 Q2)
The read-only flag is not respected when importing a document
Completed
Last Updated: 14 May 2024 15:37 by ADMIN
Release 2024.2.514 (2024 Q2)
The images are loaded asynchronously and when scrolling too fast, the loader might fail to load an image if it is bigger.
Completed
Last Updated: 14 May 2024 15:37 by ADMIN
Release 2024.2.514 (2024 Q2)
Created by: Philipp
Comments: 3
Category: PDFViewer
Type: Bug Report
3

When using SaveAsCommandDescriptor of RadPdfViewer and trying to replace a pdf file that is currently open in adobe reader causes the following exception:

 

System.IO.IOException: The process can not access file "C:\Temp\test.pdf" because it used by another process.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
   at Microsoft.Win32.SaveFileDialog.OpenFile()
   at Telerik.Windows.Documents.Commands.SaveAsPdfDocumentCommand.Execute(Object parameter)
   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at Telerik.Windows.Controls.RadButton.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   [...]
In Development
Last Updated: 13 May 2024 10:38 by ADMIN
When changing the device culture to RTL (e.g. Hebrew but not only) in a project targeting .NET 5 (or later), some documents are rendered incorrectly.
In Development
Last Updated: 07 May 2024 10:34 by ADMIN
OverflowException is thrown while importing document using Helvetica font with custom encoding.
In Development
Last Updated: 26 Apr 2024 16:34 by ADMIN
As a result, the glyphs are not measured and positioned properly. The issue applies to the TrueType and Type1 fonts.
Unplanned
Last Updated: 23 Apr 2024 05:28 by Belma
Images hosted inside multiple Form XObjects are not rendered.
Unplanned
Last Updated: 22 Apr 2024 10:22 by Valentin
Some documents cannot be printed with the PdfViewer. In this case no exception is thrown and the result file is 0 bytes. 
Unplanned
Last Updated: 15 Apr 2024 08:44 by ADMIN
When opening a document with a CFF Type1 font an exception is thrown: NullReferenceException: 'Object reference not set to an instance of an object.'
Declined
Last Updated: 09 Apr 2024 08:27 by ADMIN
XObejcts with indirect reference to an image are not rendered.
In Development
Last Updated: 08 Apr 2024 07:09 by ADMIN
When the font is not embedded in the document, PdfViewer tries to read it from the OS. However, the Calibri-Font is not properly parsed and a NullReferenceException is thrown internally for its encoding. 
1 2 3 4 5 6