# Annotations gets shuffled on Copy / paste

**URL:** <https://pdfjs.community/t/annotations-gets-shuffled-on-copy-paste/255>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [September 14, 2020, 8:24am UTC](https://pdfjs.community/t/annotations-gets-shuffled-on-copy-paste/255 "2020-09-14T08:24:55Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![kiran.patil](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kiran.patil](https://pdfjs.community/u/kiran.patil)\
**Post date:** [September 14, 2020, 8:24am UTC](https://pdfjs.community/t/annotations-gets-shuffled-on-copy-paste/255/1 "2020-09-14T08:24:55Z")

</div>

I have used this method for copy selected annotations -

> ```
> this.viewerInstance.annotManager.updateCopiedAnnotations();
> 
> ```

And this method for paste annotations -

> ```
> this.viewerInstance.annotManager.pasteCopiedAnnotations();
> 
> ```

But when I copy and paste multiple annotations like AnnotationCreateAreaMeasurement, AnnotationCreatePerimeterMeasurement, AnnotationCreateRubberStamp, rubber stamp always appears at last on paste when exportAnnotations() is called. It doesn’t paste as per the selection and copied annotations.

Like when I select and copy an area then a rubber stamp and then perimeter, and on paste rubber stand appears at last. (area,perimeter and then stamp). But I want it to be pasted exactly in the sequence as I select annotations.

---

_[View the full topic](https://pdfjs.community/t/annotations-gets-shuffled-on-copy-paste/255)._
