# PDF is displayed without previous annotations

**URL:** <https://pdfjs.community/t/pdf-is-displayed-without-previous-annotations/1738>\
**Category:** Technical Support\
**Created:** [June 2, 2022, 9:09pm UTC](https://pdfjs.community/t/pdf-is-displayed-without-previous-annotations/1738 "2022-06-02T21:09:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![hector.surjan](https://avatars.discourse-cdn.com/v4/letter/h/aeb1de/32.png) [@hector.surjan](https://pdfjs.community/u/hector.surjan)\
**Post date:** [June 2, 2022, 9:09pm UTC](https://pdfjs.community/t/pdf-is-displayed-without-previous-annotations/1738/1 "2022-06-02T21:09:00Z")

</div>

**Which product are you using?**  
PDF.js Express Plus

**PDF.js Express Version**  
7.0.1

**Detailed description of issue**  
We open a PDF that contains annotations that are visible in Adobe PDF, but they are not displayed using PDF.js.  
I’ve tried changing disableFlattenedAnnotations, but it doesn’t work.

**Expected behaviour**  
This is what it should display:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/a3c1a2001c380ce3222f46aa5fb83f79bdcd78f5.jpeg)

**Does your issue happen with every document, or just one?**  
This is the first time that we try to open a PDF with embedded annotations.

**Link to document**  
{Provide a link to the document in question if possible}

**Code snippet**  
WebViewer({  
path: ‘/static/lib’,  
initialDoc: FILE\_NAME,  
disableFlattenedAnnotations: false,  
}, element).then(instance =\> {

const { docViewer, annotManager, Tools, Annotations, PDFNet, CoreControls } = instance;

// Document needs to be loaded before we can import annotations  
instance.docViewer.on(‘documentLoaded’, async () =\> {

```
documentStream = await instance.docViewer.getDocument().getFileData({});
documentBlob = new Blob([documentStream], { type: 'application/pdf' });

```

})

})

---

_[View the full topic](https://pdfjs.community/t/pdf-is-displayed-without-previous-annotations/1738)._
