How to control the Edit and Delete Event of Annotation of PDF Embed API.
Hi, I am using PDF Embed API for the web application wanted to get control of the Delete Action of the Annotation.
Why I would need this is listed below:
Imagine I am logged in as a User called "Amit" and added some annotation, this annotated value is stored in my local collection and logged out of the application.
The user called "Akash" logged in and see that the annotation is added to the PDF and he try to delete the annotation what "Amit" has added using the Delete Option in the Drop Down.
I wanted to have control over the Delete Action before the Annotation is actually deleted.
I am listening to the Event Listener as
The Above logic work fine as it is not calling annotationUpdated() and when I do the reload it is actually getting it back. But this does not sound user friendly for me.
Please let me know how can I handle the EDIT and DELETE Option from the UI.
Or for the alternate do let me know How to hide those options from UI.
Thanks.
