Products Technologies Demo Docs Blog Support Company

Stay Up-To-Date: Document Viewer 32.3.1 Released

With new features and improvements, we have released a new version of the Document Viewer. Get ready to update your applications by learning about the new features and enhancements.

Stay Up-To-Date: Document Viewer 32.3.1 Released

We have just released a new package versions of the TX Text Control DocumentViewer for ASP.NET, ASP.NET Core, Angular, and React.

Updating the Packages

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

NuGet

To update the Angular npm package use the following command:

npm install @txtextcontrol/tx-ng-document-viewer@latest

To update the React npm package use the following command:

npm install @txtextcontrol/tx-react-document-viewer@latest

Fixed Issues

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

ID Description Status
MVCDV-200 Angular: Documents cannot be loaded via JS API Fixed in 32.3.1
MVCDV-204 Document Viewer re-renders only partially when using partial views Fixed in 32.3.1
MVCDV-202 After signing all fields, the NEXT and SUBMIT buttons are visible for a short period of time Fixed in 32.3.1
MVCDV-201 Signature box is displayed for PDF documents with signature fields when using pdf.js as rendering engine. Fixed in 32.3.1
MVCDV-199 TXDocumentViewer.downloadDocument throws an error Fixed in 32.3.1
MVCDV-198 When annotations are loaded using JavaScript, they are not immediately visible Fixed in 32.3.1

Injecting CSS

A new feature is the ability to inject custom CSS into the DocumentViewer. This can be done by adding CSS rules to the shadow DOM of the DocumentViewer. The following code snippet shows how to inject a custom CSS rule into the DocumentViewer:

window.addEventListener("documentViewerLoaded", function (eventArgs) {
  const sheet = new CSSStyleSheet();
  sheet.insertRule(".page-image { background-image: url('/Images/loader2.svg') !important; background-repeat : no-repeat !important; background-size: contain !important; }");
  sheet.insertRule("#tx-thumbnails img { background-image: url('/Images/loader2.svg') !important; background-repeat : no-repeat !important; background-size: contain !important; }");
  eventArgs.detail.targetElement.shadowRoot.adoptedStyleSheets = [sheet];
 });

This code snippet injects a custom CSS rule that changes the loading images for the page and the thumbnails that are displayed while the document loads.

Custom loading images

Or you can use this new way to customize the style of viewer elements. The following code changes the background color of the toolbar:

window.addEventListener("documentViewerLoaded", function (eventArgs) {
   const sheet = new CSSStyleSheet();
   sheet.insertRule("#tx-toolbar { background: linear-gradient(-90deg, #ea1183, #822162); !important; }");
   eventArgs.detail.targetElement.shadowRoot.adoptedStyleSheets = [sheet];
});

Style customization

Make sure to update the packages to the latest version to benefit from the new features and fixes.

Happy coding!

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

ASP.NET

Integrate document processing into your applications to create documents such as PDFs and MS Word documents, including client-side document editing, viewing, and electronic signatures.

ASP.NET Core
Angular
Blazor
JavaScript
React
  • Angular
  • Blazor
  • React
  • JavaScript
  • ASP.NET MVC, ASP.NET Core, and WebForms

Learn more Trial token Download trial

Related Posts

ASP.NETDocument ViewerE-Sign

Document Viewer 32.2.1 Released

With new features and improvements, we have released a new version of the Document Viewer. Get ready to update your applications by learning about the new features and enhancements.


ASP.NETDocument ViewerE-Sign

Document Viewer 32.1.1 Released: Signature Typing Support

With new features and improvements, we have released a new version of the Document Viewer. Get ready to update your applications by learning about the new features and enhancements.


ASP.NETDocument ViewerE-Sign

Document Viewer 32.0.2 Released: Performance, Raw Signature Data, Text Selection

With many new features and performance improvements, we have released a new version of the Document Viewer. Get ready to update your applications by learning about the new features and enhancements.


ASP.NETASP.NET CoreDocument Editor

Preparing Documents for E-Signing for Multiple Signers in .NET C#

Learn how to prepare documents for e-signing by multiple signers in .NET C#. This article shows how to create signature fields and how to assign them to signers.


ASP.NETASP.NET CoreDocument Viewer

Optimizing Digital Signature Workflows: Starting with MS Word DOCX Files…

Starting a digital signature workflow with MS Word DOCX files instead of PDFs provides greater flexibility, ease of editing, and collaboration during the document preparation phase. DOCX files are…

Summarize this blog post with:

Share on this blog post on: