pdfAnnotate icon indicating copy to clipboard operation
pdfAnnotate copied to clipboard

Update / Delete existing Annotations

Open chirag64 opened this issue 4 years ago • 3 comments

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.

chirag64 avatar Mar 11 '21 12:03 chirag64

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

highkite avatar Mar 25 '21 21:03 highkite

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 avatar Mar 27 '21 15:03 chirag64

@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?

PranjulKhirwar avatar Jun 22 '22 11:06 PranjulKhirwar