# Javascript: DocumentViewerController.annotations Property

> Controls annotation import/export, stamp definitions, and annotation UI. Available after initialize() completes.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Path:** TX Text Control .NET Server > Reference > JavaScript API - Document Viewer > Javascript: DocumentViewerController.annotations Property
- **182 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewercontroller/annotations-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewercontroller/annotations-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewercontroller/annotations-property/llms-full.txt

---

### Description

Controls annotation import/export, stamp definitions, and annotation UI. Available after [initialize()](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewercontroller/llms-full.txt) completes.

### Syntax

```javascript
<Annotations> DocumentViewerController.annotations
```

### Examples

The following example demonstrates `TXDocumentViewer.annotations` in a practical Document Viewer workflow. Provides functionalities for working with Annotations.

```javascript
const annotations = TXDocumentViewer.annotations;
annotations.showToolbar(true);
console.log("Current annotation data:", annotations.export());
```

---

## Nearby

- **Previous:** [Javascript: DocumentViewerController.addEventListener Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewercontroller/addeventlistener-method/llms-full.txt)
- **Next:** [Javascript: DocumentViewerController.cancelSearch Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewercontroller/cancelsearch-method/llms-full.txt)
