# DocumentViewerSettings Class

> Initial settings accepted by `DocumentViewerElement` and `DocumentViewerController`. Nested options are documented as DocumentLoadSettings, SignatureSettings, and OAuthSettings.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Path:** TX Text Control .NET Server > Reference > JavaScript API - Document Viewer > DocumentViewerSettings Class
- **972 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/llms-full.txt

---

### Description

Initial settings accepted by `DocumentViewerElement` and `DocumentViewerController`. Nested options are documented as [DocumentLoadSettings](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentloadsettings/llms-full.txt), [SignatureSettings](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/signaturesettings/llms-full.txt), and [OAuthSettings](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/oauthsettings/llms-full.txt).

### Syntax

```javascript
DocumentViewerSettings
```

---

## In This Section

- [Javascript: DocumentViewerSettings.basePath Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/basepath-property/llms-full.txt): Base URL used for server-side document endpoints.
- [Javascript: DocumentViewerSettings.customQueryParams Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/customqueryparams-property/llms-full.txt): Additional query parameters sent to server-side document endpoints. Endpoint-specific values take precedence, and `access_token` is reserved for OAuth handling.
- [Javascript: DocumentViewerSettings.dock Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/dock-property/llms-full.txt): Initial dock style: `0` for window mode or `1` for fill mode.
- [Javascript: DocumentViewerSettings.documentData Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/documentdata-property/llms-full.txt): Base64-encoded document loaded automatically during initialization.
- [Javascript: DocumentViewerSettings.documentLoadSettings Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/documentloadsettings-property/llms-full.txt): Provider settings for the automatically loaded document.
- [Javascript: DocumentViewerSettings.documentPath Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/documentpath-property/llms-full.txt): Document name or path associated with `documentData`.
- [Javascript: DocumentViewerSettings.formattingPrinter Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/formattingprinter-property/llms-full.txt): Formatting-printer identifier sent to the document provider.
- [Javascript: DocumentViewerSettings.oauthSettings Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/oauthsettings-property/llms-full.txt): OAuth settings for requests to server-side document endpoints.
- [Javascript: DocumentViewerSettings.renderMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/rendermode-property/llms-full.txt): Rendering mode: `0` automatic, `1` fonts, `2` glyph outlines, or `4` bitmaps.
- [Javascript: DocumentViewerSettings.resources Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/resources-property/llms-full.txt): Localized viewer strings keyed by their `TX_*` resource names.
- [Javascript: DocumentViewerSettings.showThumbnailPane Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/showthumbnailpane-property/llms-full.txt): Whether the left sidebar is initially visible in desktop mode.
- [Javascript: DocumentViewerSettings.signatureSettings Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/signaturesettings-property/llms-full.txt): Signature settings for the automatically loaded document.
- [Javascript: DocumentViewerSettings.toolbarDocked Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/toolbardocked-property/llms-full.txt): Whether the desktop toolbar is docked to the viewer.
- [Javascript: DocumentViewerSettings.userNames Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/usernames-property/llms-full.txt): User names available to annotation and comment workflows. The first entry is treated as the current user.
- [Javascript: DocumentViewerSettings.view Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/view-property/llms-full.txt): Viewer mode: `0` mobile, `1` desktop, or `2` automatic detection.

---

## Nearby

- **Previous:** [Javascript: DocumentViewerElement.userNames Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewerelement/usernames-property/llms-full.txt)
- **Next:** [Javascript: DocumentViewerSettings.basePath Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript-document-viewer/documentviewersettings/basepath-property/llms-full.txt)
