Hi,
this took a while to debug, but I was able to replicate the bug even in the code you have provided. I'm 100% sure that the NuGet you have provided is installed in the solution but the error is still occurring.
Anyway, it seems that adding stamps is not working while the stamp is added to the page which is not currently displayed to the user. I took the sample code you provided and changed the page from 1 to 4. This throws a NullReferenceException. I attach the modified solution.
Only change I have done to it is that I have modified file GettingStarted/PDFViewerPage.xaml.cs on line 41.
Changed from:
pdfViewerControl.AddStamp(image, 1, new Xamarin.Forms.Rect(10, 10, 100, 100));
To:
pdfViewerControl.AddStamp(image, 4, new Xamarin.Forms.Rect(10, 10, 100, 100));
And the exception occurs.
This happens in Android simulator and on physical device, both running Android 10.
Regards
Attachment:
GettingStarted_modified_66353cae.zip