# Download pdf with annotations(fields data + signatures)

**URL:** <https://pdfjs.community/t/download-pdf-with-annotations-fields-data-signatures/355>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [October 23, 2020, 6:42pm UTC](https://pdfjs.community/t/download-pdf-with-annotations-fields-data-signatures/355 "2020-10-23T18:42:32Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [October 26, 2020, 2:17pm UTC](https://pdfjs.community/t/download-pdf-with-annotations-fields-data-signatures/355/4 "2020-10-26T14:17:59Z")

</div>

Hi there!

Before you export the annotations, you can loop over them and set them as readonly.

```javascript
const { annotManager } = instance;
const list = annotManager.getAnnotationsList();

list.forEach(item => {
  item.ReadOnly = true
});

const xfdf = await annotManager.exportAnnotations();
...

```

Keep in mind that a lot of PDF viewers do not honour the ReadOnly flag, so the document may still be editable in some viewers.

Thanks!  
Logan

---

_[View the full topic](https://pdfjs.community/t/download-pdf-with-annotations-fields-data-signatures/355)._
