

I tried deleteAnnotation but it is not deleting the highlight from the pdf. Select the page number of the highlight you wish to remove, right-click it, and click the Delete annotation option from the newly opened context menu. I am not finding any way to delete highlight annotation which will basically remove the highlight from the pdf. Another way to remove a highlight in a PDF is to open the Annotations panel using the button on the right-hand side of the programs interface to open a list of all the annotations. I am using this code to create highlight: const `.trim()Ĭonst highlight = new Annotations.TextHighlightAnnotation() ĪnnotManager.addAnnotation(highlight, true) ĪnnotManager.drawAnnotations(highlight.PageNumber) But when I couldn’t delete the annotation from the pdf. I am using pdf js express to draw highlight annotation in pdf.
