TX Text Control .NET Server

Components

Topic

Four main components make up TX Text Control .NET Server, and all of them share one document engine. Each component has a page of its own that describes what it is, what you and your users do with it, which packages it needs and where its tutorials and API reference are. Consult them when you plan an application and want to know which parts you need.

Two of the components work in your .NET code and have no user interface: ServerTextControl and MailMerge. The other two, the Document Editor and the Document Viewer, are user interfaces that run in the browser. They need an ASP.NET Core backend that runs TX Text Control, because the documents are processed on the server.

The Components at a Glance

ComponentWhat it doesWhere it runsMain NuGet packages
ServerTextControlCreates, loads, changes and saves documents in code, for example as DOCX or PDFIn your .NET code, for example in an ASP.NET Core application, a Web API, a console application or a serviceTXTextControl.TextControl.Core.SDK (Core) or TXTextControl.TextControl.ASP.SDK (Classic)
MailMergeMerges JSON data, business objects and other data into templatesIn your .NET code, together with a ServerTextControl instanceThe same packages as ServerTextControl
Document EditorA word processor with a ribbon interface, used to edit documents and design templatesIn the browser, connected to your ASP.NET Core backend over a WebSocketTXTextControl.Web, TXTextControl.Web.DocumentEditor.Backend and TXTextControl.TextControl.Core.SDK
Document ViewerDisplays documents read-only; users annotate them, fill out form fields and sign themIn the browser, connected to your ASP.NET Core backend over HTTPTXTextControl.Web.DocumentViewer and TXTextControl.TextControl.Core.SDK

For Angular and React, the Document Editor and the Document Viewer are also available as npm packages, and for Blazor as NuGet packages on nuget.org. Each component page lists the packages for every frontend.

How the Components Work Together

All components use the same document engine, so a document created in one part of your application can be used in any other. A template designed in the Document Editor looks the same when your backend merges it and exports it as PDF or DOCX.

A typical application combines the components like this:

  • A business user designs an invoice or contract template with merge fields in the Document Editor, and your application stores it.
  • Your backend loads the template into a ServerTextControl, merges data from your database into it with MailMerge, and saves the result as PDF or in another format.
  • A customer opens the document in the Document Viewer, fills out its form fields and signs it. The viewer sends the signed document to your backend, where ServerTextControl can save it as a digitally signed PDF.

Text Control's e-signing reference implementation is built this way. The blog article E-Signing Reference Implementation in .NET C#: An Overview describes it, and its C# sources are available on GitHub.

Core and Classic

TX Text Control .NET Server ships with two document processing engines: Core runs on Windows and Linux and is recommended for new projects, and Classic runs on Windows only. The engine affects the components as follows:

  • ServerTextControl and MailMerge are part of both engine packages, and your code is the same for both.
  • The Document Editor backend package TXTextControl.Web.DocumentEditor.Backend requires the Core package.
  • The Document Viewer has a package for each engine: TXTextControl.Web.DocumentViewer for Core and TXTextControl.Web.DocumentViewer.Classic for Classic.

Product Architecture explains the engines and how the components are connected.

Choose a Component

If you want toReadThen start with
Create, convert or change documents in code, without a user interfaceServerTextControlGetting Started: Document Processing
Generate invoices, letters, contracts or reports from templates and dataMailMergeGetting Started: Mail Merge
Let users edit documents or design templates in the browserDocument EditorGetting Started: Document Editor
Let users view, annotate, fill out or sign documents in the browserDocument ViewerGetting Started: Document Viewer

If you are new to TX Text Control, read the ServerTextControl page first. Every other component builds on the document engine it introduces.