# AnnotationChanged event triggers as soon as pdf is opened with linkAnnotationEvent

**URL:** <https://pdfjs.community/t/annotationchanged-event-triggers-as-soon-as-pdf-is-opened-with-linkannotationevent/2387>\
**Category:** Technical Support\
**Created:** [February 22, 2023, 5:19am UTC](https://pdfjs.community/t/annotationchanged-event-triggers-as-soon-as-pdf-is-opened-with-linkannotationevent/2387 "2023-02-22T05:19:38Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![kkim](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kkim](https://pdfjs.community/u/kkim)\
**Post date:** [March 8, 2023, 6:12pm UTC](https://pdfjs.community/t/annotationchanged-event-triggers-as-soon-as-pdf-is-opened-with-linkannotationevent/2387/16 "2023-03-08T18:12:17Z")

</div>

Hi there,

After disabling automatic linking, you could remove all annotations via deleteAnnotations:  
`annotationManager.deleteAnnotations(annotationManager.getAnnotationsList())`  
and then create the annotations. Then exporting them via exportAnnotations should only show you the annotation you created.

Best regards,  
Kevin Kim

---

_[View the full topic](https://pdfjs.community/t/annotationchanged-event-triggers-as-soon-as-pdf-is-opened-with-linkannotationevent/2387)._
