We have just released a new package version of the TX Text Control MVC DocumentViewer for ASP.NET and ASP.NET Core web applications.

Updating the Package

To update the NuGet package, open the NuGet Package Manager, select nuget.org as the package source, select Installed and locate the TXTextControl.Web.DocumentViewer package. From the Versions drop-down list, select the latest stable version (33.2.1).

Fixed Issues

Version 33.2.1 includes both new features and fixes for known issues. The below tables lists all fixed known issues.

ID Description Status
MVCDV-238 NullReferenceException when clicking on Print button Fixed in 33.2.1
MVCDV-237 Zoom in and zoom out icons not disabling after max limit reached Fixed in 33.2.1
MVCDV-233 Displaced menu when toolbar is not docked Fixed in 33.2.1
MVCDV-236 Zoom drop-down list doesn't close on click Fixed in 33.2.1
MVCDV-239 Thumbnail preview icon is not selected when preview is active Fixed in 33.2.1

New Features

The Document Viewer receives new features outside of the TX Text Control major release cycle. This means that minor release numbers also contain new features, improvements and bug fixes.

  • zoomChanged Event
    The zoom level of the document viewer can now be monitored using the new zoomChanged event. This allows developers to respond to zoom level changes and implement custom behavior based on the current zoom level.

    To use the zoomChanged event, you can subscribe to it in your JavaScript code as follows:

    TXDocumentViewer.addEventListener("zoomChanged", (event) => {
    console.log(event.newValue);
    });
    view raw test.js hosted with ❤ by GitHub

    This will write the current zoom level to the console whenever the zoom level changes.

    1.6