# Annotations Class

> Controls annotation import/export, stamp definitions, and annotation UI.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Class
- **Path:** DS Server > Reference > JavaScript API - Document Viewer > Annotations Class
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/#description)
- [Syntax](https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/#syntax)
- [Examples](https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/#examples)
- [Members](https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/#members)

---

## In This Section

- [Javascript: Annotations.export Method](https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/export-method/llms.txt): Serializes the page-indexed annotation collection as JSON.
- [Javascript: Annotations.getStampList Method](https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/getstamplist-method/llms.txt): Returns the current stamp definitions.
- [Javascript: Annotations.load Method](https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/load-method/llms.txt): Replaces the collection with annotations from viewer JSON.
- [Javascript: Annotations.setStampList Method](https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/setstamplist-method/llms.txt): Replaces the toolbar's stamp definitions.
- [Javascript: Annotations.showSidebar Method](https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/showsidebar-method/llms.txt): Shows or hides the comments sidebar.
- [Javascript: Annotations.showToolbar Method](https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/showtoolbar-method/llms.txt): Shows, hides, or toggles the annotation toolbar. Showing the toolbar also activates annotation editing.

---

## Nearby

- **Previous:** [JavaScript API - Document Viewer](https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/llms.txt)
- **Next:** [Javascript: Annotations.export Method](https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/export-method/llms.txt)
