This is a migrated thread and some comments may be shown as answers.

ArgumentNullException after scrolling PDF document

4 Answers 71 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Georgii
Top achievements
Rank 1
Georgii asked on 24 Oct 2016, 02:15 PM

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

4 Answers, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 27 Oct 2016, 06:38 AM
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!
0
Georgii
Top achievements
Rank 1
answered on 28 Oct 2016, 12:25 PM

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

 

Best regards,

Georgii

0
Georgii
Top achievements
Rank 1
answered on 07 Nov 2016, 03:36 PM

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

0
Tanya
Telerik team
answered on 09 Nov 2016, 02:32 PM
Hi ,

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!
Tags
PDFViewer
Asked by
Georgii
Top achievements
Rank 1
Answers by
Boby
Telerik team
Georgii
Top achievements
Rank 1
Tanya
Telerik team
Share this question
or