# Javascript: DocumentViewerController.initialize Method

> Initializes the viewer DOM and its interaction components.

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

---

### Description

Initializes the viewer DOM and its interaction components.

### Syntax

```javascript
<Promise.<void>> DocumentViewerController.initialize()
```

### Return Value

Resolves when the controller is ready for document operations.

---

## Nearby

- **Previous:** [Javascript: DocumentViewerController.forms Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewercontroller/forms-property/llms-full.txt)
- **Next:** [Javascript: DocumentViewerController.loadDocument Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewercontroller/loaddocument-method/llms-full.txt)
