I'm using the pdf viewer in a xamarin solution, which includes a UWP application. A pdf can be displayed no problem on the UWP app, however as soon as a mouse scroll is done (to try and scroll down in the pdf, for example), the application crashes without any error message or other signs for what went wrong. Breakpoints and debugging mode in visual studio haven't helped identify the issue.
Is this a known problem with the pdf viewer component? Any advice on a resolution would be much appreciated.
4 Answers, 1 is accepted
Hi Arjun,
We are not aware of such an issue with RadPdfViewer control, so I would need your further assistance in investigating the reasons behind.
Would it be possible to send me the pdf file you've experienced the exception with? Also what approach are you using to load the document?
You would need to open a support ticket and zip and attach the file there.
Thanks in advance for your cooperation.
Regards,
Yana
Progress Telerik
Hi,
I'd got same crash.
Exception in xaml.g.i.cs :
{"Value does not fall within the expected range."}
"System.ArgumentException: Unsupported touch action type.\r\nParameter name: actionType\r\n at Telerik.XamarinForms.SkiaSharp.Interaction.SkiaViewInteractionAdapter.Convert(SKTouchAction actionType)\r\n at Telerik.XamarinForms.SkiaSharp.Interaction.SkiaViewInteractionAdapter.OnTouch(SKTouchEventArgs e)\r\n at Telerik.XamarinForms.SkiaSharp.Interaction.SkiaViewInteractionAdapter.GlView_Touch(Object sender, SKTouchEventArgs e)\r\n at SkiaSharp.Views.Forms.SKGLView.OnTouch(SKTouchEventArgs e)\r\n at SkiaSharp.Vie"
The cause was a dependency to skiasharp in another package. I excluded it and it worked.
Hello Prashant,
In general, a reference of SkiaSharp library (SkiaSharp and SkiaSharp.Views.Forms nuget packages) is needed for RadPdfViewer (as well as some other controls from the Telerik UI for Xamarin suite) to render correctly.
I guess you need to check the other nuget packages in the solution and verify whether there isn't another reference to SkiaSharp of different version.
If this does not help, please open a support ticket and send us a sample repro app, so we can investigate the error.
Regards,
Yana
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.