ArgumentNullException after scrolling PDF document

5 posts, 0 answers
  1. Georgii
    Georgii avatar
    3 posts
    Member since:
    Oct 2016

    Posted 24 Oct Link to this post

    An unhandled ArgumentNullException  exception appears after scrolling of the document to the third page,and the document is viewed fine at least in chrome and edge browsers.

    Here is the stack trace:

    System.ArgumentNullException: Value cannot be null.
    Parameter name: source
       at Telerik.Windows.Documents.Fixed.FormatProviders.Old.Pdf.PdfElementToFixedElementTranslator.CreateDestination(Destination source, PdfFormatProvider provider)
       at Telerik.Windows.Documents.Fixed.FormatProviders.Old.Pdf.PdfElementToFixedElementTranslator.CreateGoToAction(GoToAction source, PdfFormatProvider provider)
       at Telerik.Windows.Documents.Fixed.FormatProviders.Old.Pdf.PdfElementToFixedElementTranslator.CreateAction(Action source, PdfFormatProvider provider)
       at Telerik.Windows.Documents.Fixed.FormatProviders.Old.Pdf.PdfElementToFixedElementTranslator.CreateLinkAnnotation(Link source, PdfFormatProvider provider)
       at Telerik.Windows.Documents.Fixed.FormatProviders.Old.Pdf.PdfElementToFixedElementTranslator.CreateAnnotation(Annot source, PdfFormatProvider provider)
       at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.CopyAnnotationsFromPageSource(Page source, AnnotationCollection annotations)
       at Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider.LoadPageAnnotations(RadFixedPage page)
       at Telerik.Windows.Documents.Fixed.Model.RadFixedPage.LoadAnnotations()
       at Telerik.Windows.Documents.Fixed.UI.Layers.AnnotationsUILayer.Initialize(UILayerInitializeContext context)
       at Telerik.Windows.Documents.UI.FixedPagePresenterBase.InitializeUILayers(UILayerInitializeContext context)
       at Telerik.Windows.Documents.UI.FixedPagePresenter.InitializeUILayers(UILayerInitializeContext context)
       at Telerik.Windows.Documents.UI.FixedDocumentPresenterBase.GetPagePresenter(FixedPageLayoutInfo pageInfo)
       at Telerik.Windows.Documents.UI.FixedDocumentPagesPresenter.UpdateVisiblePages(IEnumerable`1 visiblePages)
       at Telerik.Windows.Documents.UI.FixedDocumentPagesPresenter.ArrangeOverride(Size arrangeBounds)
       at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
       at System.Windows.UIElement.Arrange(Rect finalRect)
       at System.Windows.ContextLayoutManager.UpdateLayout()
       at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
       at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
       at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
       at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
       at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

    Can you please help with this error investigation?

    The problem document: https://drive.google.com/file/d/0B8STNPYlNrMqZlpRS0RiRkdyeFE/view?usp=sharing

    Telerik version is 2015.3.1104.45
    We are using it with .net 4.6.1, under Windows 10

  2. Boby
    Admin
    Boby avatar
    595 posts

    Posted 27 Oct Link to this post

    Hi Georgii,

    It seems that the issue is fixed in the latest version of the control. Could you verify this at your side?

    Regards,
    Boby
    Telerik by Progress
    Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
  3. UI for WPF is Visual Studio 2017 Ready
  4. Georgii
    Georgii avatar
    3 posts
    Member since:
    Oct 2016

    Posted 28 Oct in reply to Boby Link to this post

    Hi Boby, I will download a trial version and test with it.

     

    Best regards,

    Georgii

  5. Georgii
    Georgii avatar
    3 posts
    Member since:
    Oct 2016

    Posted 07 Nov in reply to Boby Link to this post

    Hi Boby, the issue indeed was fixed in the newest version. Also opening the document in Acrobat DC and saving it fixed the issue with the version we have now.

    Thank you.

    Best regards, Georgii

  6. Tanya
    Admin
    Tanya avatar
    405 posts

    Posted 09 Nov Link to this post

    Hi Georgii,

    Thank you for the feedback. We are happy to hear that now everything is working as expected.

    Regards,
    Tanya
    Telerik by Progress
    Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Back to Top
UI for WPF is Visual Studio 2017 Ready