# annotationManager.getAnnotationsList() returns nothing

**URL:** <https://pdfjs.community/t/annotationmanager-getannotationslist-returns-nothing/2783>\
**Category:** Technical Support\
**Created:** [August 11, 2023, 4:48pm UTC](https://pdfjs.community/t/annotationmanager-getannotationslist-returns-nothing/2783 "2023-08-11T16:48:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![helpdesk](https://avatars.discourse-cdn.com/v4/letter/h/7c8e57/32.png) [@helpdesk](https://pdfjs.community/u/helpdesk)\
**Post date:** [August 11, 2023, 4:48pm UTC](https://pdfjs.community/t/annotationmanager-getannotationslist-returns-nothing/2783/1 "2023-08-11T16:48:59Z")

</div>

**Which product are you using?**

**PDF.js Express Version**

**Detailed description of issue**  
{ I’m trying to retrieve existing annotations in my document, to be more specific, bookmarks etc. However the annotationsList return an empty list.

**Expected behaviour**  
{It should return a list of bookmarks with informations such as subject }

**Does your issue happen with every document, or just one?**  
{This is the first time we are using this, and we are using PDF.JS Express Plus which is the pro version I believe? Also, I am in the development mode, does that make a difference?}

**Link to document**  
{  
[doc.pdf](https://pdfjs.community/uploads/short-url/bm7QihlkZNLT1sYPZCZ20XwCxs2.pdf) (2.2 MB)  
}

**Code snippet**  
{  
const annotManager = instance.Core.annotationManager;  
const docViewer = instance.Core.documentViewer;  
docViewer.addEventListener(‘annotationsLoaded’, () =\> {

```
           const annotationsList = annotManager.getAnnotationsList();

```

}  
})  
}

---

<div class="post-metadata">

**Author:** ![darian.chen](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@darian.chen](https://pdfjs.community/u/darian.chen)\
**Post date:** [August 11, 2023, 6:09pm UTC](https://pdfjs.community/t/annotationmanager-getannotationslist-returns-nothing/2783/3 "2023-08-11T18:09:29Z")

</div>

Hello there,

We were able to reproduce this issue regarding the missing annotations. We believe it is because the annotations are malformed. We have added this issue to our backlog for our product team to review.

Best Regards,  
Darian Chen

---

<div class="post-metadata">

**Author:** ![darian.chen](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@darian.chen](https://pdfjs.community/u/darian.chen)\
**Post date:** [September 26, 2023, 6:55pm UTC](https://pdfjs.community/t/annotationmanager-getannotationslist-returns-nothing/2783/4 "2023-09-26T18:55:31Z")

</div>

Hello,

We noticed under your expected behaviour that you want to return bookmarks.

You can get bookmarks like this:

```javascript
await documentViewer.getDocument().getBookmarks()

```

Best Regards,  
Darian
