System.ArgumentOutOfRangeException: The index can't be less then zero or greater then Count.
Exception is thrown when trying to load some PDF documents.
Pls. see sample project attached for reproduction of the issue
Exception log:
Parameter name: index
at Syncfusion.Pdf.Primitives.PdfArray.get_Item (System.Int32 index) [0x0000d] in <95823c0bf51a47ef8ee71d19da2df5b2>:0
at Syncfusion.Pdf.Interactive.PdfLoadedStyledAnnotation.ObtainColor () [0x00066] in <95823c0bf51a47ef8ee71d19da2df5b2>:0
at Syncfusion.Pdf.Interactive.PdfLoadedStyledAnnotation.get_Color () [0x00000] in <95823c0bf51a47ef8ee71d19da2df5b2>:0
at Syncfusion.SfPdfViewer.XForms.iOS.ScrollViewEx.AddExistingTextAnnotation (System.Int32 pageIndex) [0x00243] in <d295e89e405946e59f6ab7d5c4856f05>:0
at Syncfusion.SfPdfViewer.XForms.iOS.ScrollViewEx.LoadDocument (System.IO.Stream inputStream) [0x00511] in <d295e89e405946e59f6ab7d5c4856f05>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1021
at Foundation.NSAsyncSynchronizationContextDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.8.3.0/src/Xamarin.iOS/Foundation/NSAction.cs:178
at at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.8.3.0/src/Xamarin.iOS/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.8.3.0/src/Xamarin.iOS/UIKit/UIApplication.cs:65
at PdfSample.iOS.Application.Main (System.String[] args) [0x00001] in /Users/Shared/development/PdfSample/PdfSample.iOS/Main.cs:17
Attachment:
PdfSample_89b4a526.zip