# Uncaught TypeError: object is not iterable, when loading annotation

**URL:** <https://pdfjs.community/t/uncaught-typeerror-object-is-not-iterable-when-loading-annotation/2071>\
**Category:** Technical Support\
**Created:** [September 29, 2022, 12:28am UTC](https://pdfjs.community/t/uncaught-typeerror-object-is-not-iterable-when-loading-annotation/2071 "2022-09-29T00:28:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [September 29, 2022, 12:28am UTC](https://pdfjs.community/t/uncaught-typeerror-object-is-not-iterable-when-loading-annotation/2071/3 "2022-09-29T00:28:24Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:
- [Best practices for PDF.js Express - Load documents with loadDocument](https://pdfjs.express/documentation/learn-more/best-practices#load-documents-with-loaddocument)
- [Open a document, add annotations, download - 2. Listen for document load](https://pdfjs.express/documentation/use-case/upload-download.8#2.-listen-for-document-load)
- [Saving a document with annotations](https://pdfjs.express/documentation/basic-operations/save-document/save-with-annotations)

APIs:
- [Core.Annotations.WidgetAnnotation - addCustomAppearance(doc [, options])](https://pdfjs.express/api/Core.Annotations.WidgetAnnotation.html#addCustomAppearance__anchor)
- [PDF.js Express Utilities](https://pdfjs.express/api/utils/index.html#__anchor)
- [UndefinedannotationsLoaded](https://pdfjs.express/api/namespaces.list.html#event:annotationsLoaded__anchor)

Forums:
- [Error when loading xfdf annotations](https://pdfjs.community/t/error-when-loading-xfdf-annotations/1380/1)
- [How to render xfdf back into pdf](https://pdfjs.community/t/how-to-render-xfdf-back-into-pdf/2026/16)
- [Uncaught TypeError: Cannot read properties of undefined (reading ‘querySelector’)](https://pdfjs.community/t/uncaught-typeerror-cannot-read-properties-of-undefined-reading-queryselector/1952/1)

  
  

Share how you are using PDF.js Express in your organization you could win a **$500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free**. Learn more [here](https://utm.guru/ueQNw)

---

_[View the full topic](https://pdfjs.community/t/uncaught-typeerror-object-is-not-iterable-when-loading-annotation/2071)._
