Hello, I've been trying to get the SfPdfViewer control working on Xamarin.Froms (UWP) but it seems very crash prone.
I created a new blank page with only the control inside for testing and noticed that it only doesn't crash if I put a breakpoint after the InitializeComponent call and wait for a couple of seconds.
Both the XAML and code-behind are also included in the zip.
For the PDF I'm using (attached in the zip) I'm only reading it to a byte array, creating a MemoryStream instance and then loading it using LoadDocumentAsync(Stream, CancelationTokenSource) as described in the documentation.
Here's the exception message:
System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
at Windows.UI.Xaml.UIElement.Measure(Size availableSize)
at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.MeasureOverride(Size availableSize)
at Windows.UI.Xaml.UIElement.Measure(Size availableSize)
at Xamarin.Forms.Platform.UWP.VisualElementRenderer`2.MeasureOverride(Size availableSize)
at Windows.UI.Xaml.UIElement.Measure(Size availableSize)
at Xamarin.Forms.Plat
I'm using the nugget version 19.2.0.60
Thank you in advance.
Attachment:
pdf_2c1dcedf.zip