TXTextControl.Web.DocumentViewer.Classic
34.5.1
Prefix Reserved
dotnet add package TXTextControl.Web.DocumentViewer.Classic --version 34.5.1
NuGet\Install-Package TXTextControl.Web.DocumentViewer.Classic -Version 34.5.1
<PackageReference Include="TXTextControl.Web.DocumentViewer.Classic" Version="34.5.1" />
<PackageVersion Include="TXTextControl.Web.DocumentViewer.Classic" Version="34.5.1" />
<PackageReference Include="TXTextControl.Web.DocumentViewer.Classic" />
paket add TXTextControl.Web.DocumentViewer.Classic --version 34.5.1
#r "nuget: TXTextControl.Web.DocumentViewer.Classic, 34.5.1"
#:package TXTextControl.Web.DocumentViewer.Classic@34.5.1
#addin nuget:?package=TXTextControl.Web.DocumentViewer.Classic&version=34.5.1
#tool nuget:?package=TXTextControl.Web.DocumentViewer.Classic&version=34.5.1
TXTextControl® Document Viewer Component
View, sign and annotate documents in your web applications
Add document viewing, sharing and collaboration to your applications. Integrate electronic signatures into your on-prem applications and sign all types of supported documents.
📦 Dependencies
This package requires the following assemblies, which are not included in this NuGet package:
TXDocumentServer.dllTXTextControl.dllTXTextControl.Server.dllTXBarcode.dllTXDrawing.dll
Browser compatibility
The Document Viewer supports Safari and Firefox on iPadOS 16.7.16 and newer.
🚀 Getting Started
Hosting the Document Viewer
- ASP.NET Core - Setup and configure the backend.
// File: Program.cs (ASP.NET Core target)
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllersWithViews();
var app = builder.Build();
app.UseRouting();
app.UseTXDocumentViewer();
app.Run();
- ASP.NET MVC - The backend for the Document Viewer is already setup and ready to use.
The HTML Helper loads the embedded, version-matched viewer assets
automatically; no separate static-file setup is required. The legacy
TXDocumentViewer browser object remains available for compatibility, while
new integrations should use the rendered <tx-document-viewer> element.
Fonts
The Classic package does not discover or serve font files. Install fonts needed for document processing in the host server environment and make browser fonts available to the client as needed. The viewer uses the fonts provided by those environments.
Platform support and hosting model
The Classic package targets net45 for ASP.NET MVC 5 and net8.0 for
ASP.NET Core on Windows. Document processing remains in the web application
process and does not use the Core Supervisor or Worker processes. Its
ASP.NET Core target defaults to in-process document processing. The Classic
package therefore requires the Windows-supported TX Text Control runtime and
native dependencies.
Invalid or unsupported document data returns a controlled HTTP 400 response in both Classic targets. Native document loading still requires the matching installed and licensed TX Text Control runtime.
Signing workflows
The default signing workflow remains available. RedirectUrlAfterSignature and
CustomSigning are deprecated compatibility options and should not be used
for new integrations.
To process the signed document on the server, provide an
ISignatureCompletionService through the controller's dependency resolver.
Its CompleteAsync method receives SignatureData, including
SignedDocument, and returns the document sent in the signing JSON response.
Native signing produces Base64-encoded TX Internal Unicode Format data,
regardless of the loaded file's format. The viewer does not automatically load
or download the returned document; applications can handle the response with
viewer.signatures.setSubmitCallback(). Native signing remains built into the
controller. The automatic redirect workflow will be removed in a future major
version.
Using the Document Viewer
Use the HTML Helper for initializing and rendering the Document Viewer.
@Html.TXTextControl().DocumentViewer(settings =>
{
settings.DocumentPath = Server.MapPath("~/App_Data/Documents/nda.tx");
settings.Dock = DocumentViewerSettings.DockStyle.Fill;
settings.IsSelectionActivated = true;
settings.ShowThumbnailPane = true;
}).Render()
Additional supported platforms:
❓ Help Resources
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.5
- Microsoft.AspNet.Mvc (>= 5.3.0)
- Newtonsoft.Json (>= 13.0.1)
- System.Net.Http (>= 4.3.4)
-
net8.0
- Newtonsoft.Json (>= 13.0.1)
- System.Net.Http (>= 4.3.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.