Products Technologies Demo Docs Blog Support Company

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.

Document Viewer 32.2.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.2.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.2.1 includes both new features and fixes for known issues. The below tables lists all fixed known issues.

ID Description Status
MVCDV-184 Some SVG images are not rendered properly Fixed in 32.2.1
MVCDV-1845 Signature Setup Dialog: "Add" button is not activated directly after image upload Fixed in 32.2.1
MVCDV-183 First click on the "Clear" button does not deactivate the "Setup and sign" button Fixed in 32.2.1
MVCDV-171 Remember last signature type setting Fixed in 32.2.1
MVCDV-178 PDF.js >= 4 is no longer supported Fixed in 32.2.1
MVCDV-168 The creation date of a selection annotation is marked as invalid Fixed in 32.2.1
MVCDV-180 The middle dialog tab is selected after clearing the signature pad Fixed in 32.2.1
MVCDV-181 Undo after inserting an annotation leads to an error Fixed in 32.2.1
MVCDV-155 Form field becomes empty in the printed / downloaded version Fixed in 32.2.1
MVCDV-175 Progress bar is invisible on loading document via JavaScript Fixed in 32.2.1
MVCDV-177 Toolbar cannot be toggled Fixed in 32.2.1

Updating to PDF.js >= v4.0

With version 32.2.1, the DocumentViewer supports PDF.js version 4.0 and later. The new version of PDF.js includes a lot of new features and improvements. When updating to the latest version of the DocumentViewer, make sure to update the PDF.js library to the latest version as well.

In your code, replace the DocumentLoadSettings.PDFJS.BasePath property with the two new properties DocumentLoadSettings.PDFJS.LibrarySourcePath and DocumentLoadSettings.PDFJS.WorkerSourcePath.

ASP.NET Core

This is the old code:

@Html.TXTextControl().DocumentViewer(settings => {
  settings.DocumentLoadSettings.PDFJS.BasePath = "/Scripts/pdf.js/";
}).Render()

The following code shows the new code:

@Html.TXTextControl().DocumentViewer(settings => {
  settings.DocumentLoadSettings.PDFJS.LibrarySourcePath = "/Scripts/pdf.js/pdf.min.mjs";
  settings.DocumentLoadSettings.PDFJS.WorkerSourcePath = "/Scripts/pdf.js/pdf.worker.min.mjs";
}).Render()

Angular

This is the new code for Angular:

<tx-document-viewer
   width="800px"
   height="800px"
   basePath="https://backend.textcontrol.com?access-token=yourtoken"
   [documentLoadSettings] = "{ 
    pdfjs: { 
      workerSourcePath: 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/4.0.379/pdf.worker.min.mjs', 
      librarySourcePath: 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/4.0.379/pdf.min.mjs'
    }}">
</tx-document-viewer>

React

This is the new code for React:

<DocumentViewer
  width="1000px"
  height="800px"
  basePath="https://backend.textcontrol.com?access-token=yourtoken"
  documentLoadSettings={{ pdfjs : { 
    workerSourcePath : "https://cdnjs.cloudflare.com/ajax/libs/pdf.js/4.0.379/pdf.worker.min.mjs", 
    librarySourcePath: "https://cdnjs.cloudflare.com/ajax/libs/pdf.js/4.0.379/pdf.min.mjs"}}}
  >
</DocumentViewer>

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Related Posts

ASP.NETDocument ViewerE-Sign

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.


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…