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.
Unplanned
Last Updated: 02 Jul 2024 14:18 by Stenly

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}" />
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. 
Unplanned
Last Updated: 31 Jan 2024 08:03 by ADMIN
ADMIN
Created by: Deyan
Comments: 0
Category: PDFViewer
Type: Feature Request
7
Represents Highlights PDF content. While the other annotations are drawn on top of the content, the highlight annotation is behind the text it highlights. In other words, it has to be inserted at a specific place in the ContentElementsUILayer. The precise place where the highlight should be placed is described in the PDF file with the BDC, MCID and EMC operators. At the moment, we have implemented a read-only rendering for all annotation types which draws the annotions separately from the page content. In the case of Highlight, the annotation is drawn below the other content. With this implementation, depending on the PDF content, the highlight annotation might be visible or it might not be because in some cases there is geometry content below the highlighted text which hides the highlight annotation appearance. 
Unplanned
Last Updated: 04 Jan 2024 11:12 by ADMIN

A password is asked although Adobe opens the document without one when the document is encrypted with "Encryption of data using the RC4 or AES algorithms with a file encryption key length of 40 bits." - Version 1 (V 1) Revision 2 (R 2).

Similar cases (V1 R3 and V2 R3) are handled in the following item: PdfViewer: A password is asked although Adobe opens the document without one.

1 2 3 4 5 6