Thank you for getting in touch with us about this.
We are able to reproduce the crash and are investigating.
Do you have any more information about this document or the annotations that you are able to share with us?
How was the document created?
How are the annotations added to the document?
I don’t have much idea how the pdf and annotations were created.
but with our previous library and in apple preview we are able to remove annotation, with PDFtron we are getting crash.
Till that is there any approach we can do to avoid crash or atleast we can handle this exception?
We have been investigating this file and it seems like this is a malformed PDF in the way that the annotations are referenced in the document.
We are investigating the best way to handle this case when deleting annotations from malformed files.
How prevalent is this issue in your app? How often are you seeing crashes like this when trying to delete annotations?
I have checked this same issue with other few files but for other 2-3 files we are getting same issue. it was working fine with our previous library but now we are migrating to PDFtron so, we will need to handle this with PDFtron also. Please let us update if you find any fix or any way to handle.
Thanks for this updated build. Now we are able to remove those annotations with delete button of annotation toolbar. But if we try to erase it with an eraser tool, the app is still getting crash.
Also, we are having same issues with android sdk too. Could you please provide solution for android also
Thank you for the test and feedback. We are working on extending the fix to cover all possible deletion paths (e.g. eraser tool).
The Android SDK is also being updated to resolve the issue.
We have an updated build which should also prevent the crash when using the eraser on these annotations.
Are you able to test it and let us know if it’s working for you?
Thank you for this updated one. I have tested it and the crash issue is fixed, it is working fine for ios.
If possible can you please also provide android build ?
We also just released version 9.2.0 of our iOS SDK which includes the fix.
Our website will be updated next week but you should be able to update to the new version already.