We have just released a new package version of the TX Text Control MVC DocumentViewer for ASP.NET and ASP.NET Core web applications.
-
TXTextControl.Web.DocumentViewer 33.1.1
https://www.nuget.org/packages/TXTextControl.Web.DocumentViewer/33.2.1
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersTXDocumentViewer.addEventListener("zoomChanged", (event) => { console.log(event.newValue); }); This will write the current zoom level to the console whenever the zoom level changes.
1.6