# TextControlController Class

> Controller that provides all async HTTP methods called by the DocumentViewer Javascript.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Namespace:** `TXTextControl.Web.MVC.DocumentViewer`
- **Package:** `TXTextControl.Web.DocumentViewer` (assembly `TXTextControl.Web.MVC.DocumentViewer.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.Web.DocumentViewer.Classic` (assembly `TXTextControl.Web.MVC.DocumentViewer.dll`, from nuget.org)
- **Inherits:** `Microsoft.AspNetCore.Mvc.Controller`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web.MVC.DocumentViewer > TextControlController Class
- **921 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/llms-full.txt

---

### Description

Controller that provides all async HTTP methods called by the DocumentViewer Javascript.

### Syntax

```csharp
public class TextControlController : Controller
```

```vbnet
Public Class TextControlController
    Inherits Controller
```

---

## In This Section

- [TextControlController Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/constructor/llms-full.txt): Creates a controller using the configured document-processing mode.
- [TextControlController.Dispose Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/dispose-method/llms-full.txt): Releases a gateway created by the controller fallback.
- [TextControlController.Download Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/download-method/llms-full.txt): Downloads the document in format of the stream type.
- [TextControlController.GetChars Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/getchars-method/llms-full.txt): Creates and returns a List of Char models that contains the text and the position of each character.
- [TextControlController.GetDocumentViewerAsset Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/getdocumentviewerasset-method/llms-full.txt): Returns an embedded, version-matched Document Viewer asset.
- [TextControlController.GetPages Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/getpages-method/llms-full.txt): Creates and returns a List of PageImage models that contains an image
- [TextControlController.GetResource Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/getresource-method/llms-full.txt): Returns the current global viewer bundle for the legacy resource URL.
- [TextControlController.LoadDocument Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/loaddocument-method/llms-full.txt): Gets the data from the document for loading this document in the viewer.
- [TextControlController.OnExceptionAsync Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/onexceptionasync-method/llms-full.txt): Maps fallback processing failures when viewer services were not registered.
- [TextControlController.SignDocument Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/signdocument-method/llms-full.txt): Processes the signatures of a document

---

## Nearby

- **Previous:** [SignatureSettings.UniqueId Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/signaturesettings/uniqueid-property/llms-full.txt)
- **Next:** [TextControlController Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/textcontrolcontroller/constructor/llms-full.txt)
