# Multiple annotations inside one pdf is creating an incorrect xfdf object

**URL:** <https://pdfjs.community/t/multiple-annotations-inside-one-pdf-is-creating-an-incorrect-xfdf-object/1054>\
**Category:** Technical Support\
**Created:** [October 8, 2021, 12:58pm UTC](https://pdfjs.community/t/multiple-annotations-inside-one-pdf-is-creating-an-incorrect-xfdf-object/1054 "2021-10-08T12:58:03Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![chats2790](https://avatars.discourse-cdn.com/v4/letter/c/34f0e0/32.png) [@chats2790](https://pdfjs.community/u/chats2790)\
**Post date:** [October 8, 2021, 12:58pm UTC](https://pdfjs.community/t/multiple-annotations-inside-one-pdf-is-creating-an-incorrect-xfdf-object/1054/1 "2021-10-08T12:58:03Z")

</div>

**PDF.js Express Version**  
8.1.0

**Detailed description of issue**  
If I create multiple rectangle annotations over a single pdf then only the first annotation is getting communicated . This was working fine in the previous version(7.3) . Do you think this can be an xfdf issue on your end. Please let me know your feedback on it.

**Expected behaviour**  
If I select more than one table and send xfdf info to server , all selected xfdf should have tag to it having the rect info.

**Does your issue happen with every document, or just one?**  
All documents have this issue.

**Link to document**  
[sample\_schedule-merged.pdf](https://pdfjs.community/uploads/short-url/krQeTsLFJ8ah2HlXAnvjdGIDwCv.pdf) (797.7 KB)

**Code snippet**  
annotManager.on(  
“annotationChanged”,  
(annotations, action, { imported }) =\> {  
if (imported) return;  
if (action === “add” || action === “modify”) {  
this.annotationProcessing = true;  
}  
annotManager.exportAnnotCommand().then((xfdfString) =\> {  
this.XFDFStr = xfdfString;  
this.xmlArr.push(xfdfString);  
this.newXfdf = this.xmlArr.join();  
// newXfdf is the object we are sending to the backend

```
      });
    }
  );
```

---

_[View the full topic](https://pdfjs.community/t/multiple-annotations-inside-one-pdf-is-creating-an-incorrect-xfdf-object/1054)._
