# DocumentViewer Pre-Release: UI Improvements and Events

> We published another pre-release version of the TX Text Control DocumentViewer that includes UI improvements and event handling for specific events. This article gives an overview of the latest additions.

- **Author:** Bjoern Meyer
- **Published:** 2021-07-01
- **Modified:** 2025-11-16
- **Description:** We published another pre-release version of the TX Text Control DocumentViewer that includes UI improvements and event handling for specific events. This article gives an overview of the latest additions.
- **2 min read** (278 words)
- **Tags:**
  - ASP.NET
  - DocumentViewer
  - DS Server
  - Release
- **Web URL:** https://www.textcontrol.com/blog/2021/07/01/documentviewer-pre-release-ui-improvements-and-events/
- **LLMs URL:** https://www.textcontrol.com/blog/2021/07/01/documentviewer-pre-release-ui-improvements-and-events/llms.txt
- **LLMs-Full URL:** https://www.textcontrol.com/blog/2021/07/01/documentviewer-pre-release-ui-improvements-and-events/llms-full.txt

---

We just published a new pre-release version of the TX Text Control DocumentViewer to NuGet:

<https://www.nuget.org/packages/TXTextControl.Web.DocumentViewer/29.0.307.500-beta>

You can install this version directly using the NuGet Package Manager:

```
Install-Package TXTextControl.Web.DocumentViewer -Version 29.0.307.500-beta
```

This new release comes with UI improvements such as an annotation object context toolbar and resizable sidebars.

### UI Improvements

The following screen video shows the UI improvements including the resizable sidebars and the contextual annotation toolbars to add comments and to remove annotations.

![UI improvements](https://s1-www.textcontrol.com/assets/dist/blog/2021/07/01/a/assets/sidebars.webp "UI improvements")

### Event Handling

The DocumentViewer received a new JavaScript method *addEventListener* to attach events. Currently supported events are:

- annotationsChanged
- signaturesCompleted

The events can be attached as shown in the following code snippet:

```
window.addEventListener("documentViewerLoaded", function () {
    TXDocumentViewer.addEventListener("signaturesCompleted", function () {
        console.log("All signature areas completed!");
    });
});
```

In previous versions, the signature boxes were only available when the property ShowSignatureBar has been set to true. Now, the signatures boxes are available, in case a document is loaded with signature boxes included. The signature bar is not shown, if the *ShowSignatureBar* is set to false. In this case, the signature process can be started by clicking on one of the signature boxes or programmatically by calling the *startSigningProcess* method.

```
TXDocumentViewer.signatures.startSigningProcess()
```

In case all signature boxes have been signed and completed by the end-user, the event *signaturesCompleted* is fired and can be used to submit the document programmatically:

```
TXDocumentViewer.addEventListener("signaturesCompleted", function () {
    TXDocumentViewer.signatures.submit();
});
```

### Live Demo

You can test this new version in our live demos that has been already updated with the latest package version.

[Live Demo ](https://demos.textcontrol.com/chapter/topic/DocumentViewer/ViewerAnnotations)

---

## About Bjoern Meyer

As CEO, Bjoern is the visionary behind our strategic direction and business development, bridging the gap between our customers and engineering teams. His deep passion for coding and web technologies drives the creation of innovative products. If you're at a tech conference, be sure to stop by our booth - you'll most likely meet Bjoern in person. With an advanced graduate degree (Dipl. Inf.) in Computer Science, specializing in AI, from the University of Bremen, Bjoern brings significant expertise to his role. In his spare time, Bjoern enjoys running, paragliding, mountain biking, and playing the piano.

- [LinkedIn](https://www.linkedin.com/in/bjoernmeyer/)
- [X](https://x.com/txbjoern)
- [GitHub](https://github.com/bjoerntx)

---

## Related Posts

- [DocumentViewer: Deploying Forms](https://www.textcontrol.com/blog/2021/07/02/document-viewer-deploying-forms/llms.txt)
- [Introducing DS Server 4.0: Linux-Ready and Container-Friendly](https://www.textcontrol.com/blog/2025/04/30/introducing-ds-server-4-linux-ready-and-container-friendly/llms.txt)
- [DS Server 3.5.0 Released](https://www.textcontrol.com/blog/2024/09/24/ds-server-3-5-0-released/llms.txt)
- [DS Server 3.3.0 Released](https://www.textcontrol.com/blog/2024/02/16/ds-server-3-3-0-released/llms.txt)
- [DS Server 3.2.0 Released](https://www.textcontrol.com/blog/2023/11/08/ds-server-3-2-0-released/llms.txt)
- [DS Server 3.1.1 Released](https://www.textcontrol.com/blog/2023/04/12/ds-server-3-1-1-released/llms.txt)
- [DS Server 3.0: Deploying DS Server without IIS using Docker](https://www.textcontrol.com/blog/2022/10/08/ds-server-30-deploying-ds-server-without-iis-using-docker/llms.txt)
- [DS Server 3.0 Released](https://www.textcontrol.com/blog/2022/10/07/ds-server-3-0-released/llms.txt)
- [DS Server 2.0.2 Released](https://www.textcontrol.com/blog/2022/03/08/ds-server-2-0-2-released/llms.txt)
- [DS Server 2.0 Released: Comments and Mobile View](https://www.textcontrol.com/blog/2021/12/20/ds-server-2-0-released/llms.txt)
- [Back from BASTA! 2021: Some Impressions](https://www.textcontrol.com/blog/2021/09/28/back-from-basta-2021-some-impressions/llms.txt)
- [Version 30.0 Live Preview](https://www.textcontrol.com/blog/2021/09/22/version-30-live-preview/llms.txt)
- [TX Text Control 30.0 Preview: Improved Online Document Editor Ribbon Design](https://www.textcontrol.com/blog/2021/09/17/tx-text-control-30-preview-improved-online-document-editor-ribbon-design/llms.txt)
- [DocumentViewer 29.2 (29.0.302.500) Final Released](https://www.textcontrol.com/blog/2021/07/27/documentviewer-29-302-final-released/llms.txt)
- [DocumentViewer Annotations: Highlight Text](https://www.textcontrol.com/blog/2021/06/18/document-viewer-annotations-highlight-text/llms.txt)
- [Creation of Custom Electronic Signature Boxes](https://www.textcontrol.com/blog/2021/06/15/creation-of-custom-electronic-signature-boxes/llms.txt)
- [DS Server 1.1 Released: PDF and Barcodes](https://www.textcontrol.com/blog/2021/06/07/ds-server-1-1-released-pdf-and-barcodes/llms.txt)
- [DS Server: Using DocumentViewer in Angular Applications](https://www.textcontrol.com/blog/2020/12/21/ds-server-using-documentviewer-in-angular-applications/llms.txt)
- [Announcing DS Server Public Beta: Your On-Premise Document Services Cloud](https://www.textcontrol.com/blog/2020/12/18/announcing-ds-server-public-beta/llms.txt)
- [Updated DocumentViewer Features: Zooming and Panning](https://www.textcontrol.com/blog/2020/08/24/new-documentviewer-features-zooming-and-panning/llms.txt)
- [TX Spell .NET 11.0 SP1 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2026/04/08/tx-spell-net-11-0-sp1-is-now-available/llms.txt)
- [Announcing TX Text Control DS Server 5.0](https://www.textcontrol.com/blog/2026/03/12/announcing-tx-text-control-ds-server-5-0/llms.txt)
- [TX Text Control 34.0 SP2 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2026/02/18/tx-text-control-34-0-sp2-is-now-available/llms.txt)
- [TX Text Control 34.0 SP1 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2025/12/03/tx-text-control-34-0-sp1-is-now-available/llms.txt)
- [Introducing TX Text Control 34.0: Your Next Leap in Document Processing](https://www.textcontrol.com/blog/2025/11/10/introducing-tx-text-control-34-0-your-next-leap-in-document-processing/llms.txt)
