Update / Delete existing Annotations
Hi,
Thanks for building this library, it really solves a problem that me and my team are looking for a particular requirement in our project.
I could not find any way from the documentation that allows us to update or delete any of the existing annotations in a PDF file, I could only find functions to create new annotations and get existing ones.
I was just wondering if you support these or if there are any plans to add these in the future.
I am not sure what is exactly the problem. You can extract the existing annotations of a document by using the getAnnotations() method. For deletion there is the deleteAnnotation() method
Oh, I missed the deleteAnnotation() method, thanks for that.
For updating, I was wondering if there was an updateAnnotation() which can allow us to edit the text in an existing annotation.
@chirag64 @highkite can you guys help me out here, I want the functionality where the user click on some highlight and deletes it, I know we have deleteAnnotation() method but how I am supposed to detect what particular highlight I want this method to delete, is there some click event on highlights that gives it's string ID that I can later pass to deleteAnnotation() method?