Products Technologies Demo Docs Blog Support Company

Sneak Peek 31.0: Signature Fields

In TX Text Control 31.0, we will introduce native signature fields that can be used to add electronic and digital signatures to documents. These new fields will be compatible to the ASP.NET DocumentViewer.

Sneak Peek 31.0: Signature Fields

Sneak Peek

This article, part of a series, describes upcoming features that will be part of the next version of TX Text Control. A release date is not known yet and will be announced separately.

In the current version, the MVC and Angular DocumentViewer can be used to acquire signatures from users to sign documents electronically. The signature placeholder is a TextFrame object in the document with a specific name.

In version 31.0, TX Text Control will introduce native SignatureField objects that will be compatible to the DocumentViewer, but can be also used to digitally sign documents when exported to Adobe PDF.

Ribbon UI

The Insert ribbon tab received a new button Signature Field to add a new signature box into the document:

Signature Fields

SignatureField objects are inherited from the FrameBase class and are handled similar to TextFrames, Images and other FrameBase objects.

Signature Fields

In the Frame Formatting tab, additional signature properties can be adjusted including:

  • Signer
  • Title
  • Address
  • Contact information
  • Reason to sign

Signature Fields

These properties are also stored in the resulting PDF document and visible when opening the document in Acrobat Reader.

SignatureField API

Programmatically, a SignatureField can be added through the SignatureFields collection:

TXTextControl.SignatureField signatureField = 
    new TXTextControl.SignatureField(new Size(3000, 3000), "txsign_1", 0);
textControl1.SignatureFields.Add(signatureField, -1);

If a document is deployed using the TX Text Control ASP.NET DocumentViewer, the new signature boxes are converted into signature placeholders to acquire the electronic signature from users.

Signature Fields

If this document is exported as a PDF, users can directly sign within Acrobat Reader:

Signature Fields

Digitally Sign with Text Control

The following code applies a visual signature image and associates a certificate with the signature field:

// get the SignatureField by Name
TXTextControl.SignatureField signatureField = 
    textControl1.SignatureFields.GetItem("txsign_1");

// set the image
signatureField.Image = new TXTextControl.SignatureImage("signature.svg", 1);

// create a new digital signature
X509Certificate2 cert = new X509Certificate2("mycert.pfx", "123");
TXTextControl.DigitalSignature signature = 
    new TXTextControl.DigitalSignature(cert, null, "txsign_1");

// add the signatures
TXTextControl.SaveSettings saveSettings = new TXTextControl.SaveSettings() {
    SignatureFields = new TXTextControl.DigitalSignature[] { signature }
};

// export the document
textControl1.Save("results.pdf", TXTextControl.StreamType.AdobePDF, saveSettings);

TX Text Control is replacing the signature visually:

Signature Fields

And when exporting to Adobe PDF, the signature field is associated with the digital signature:

Signature Fields

Conclusion

Together with the MVC and Angular DocumentViewer, TX Text Control 31.0 will provide all required components to implement electronic and digital signatures in document workflows. Individual signature fields can be signed with multiple certificates within a document.

Stay tuned for more features of TX Text Control 31.0!

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.NETWindows FormsWPF

Visual Studio 2022 and .NET 5, 6 and 7 (Preview) Support and Strategy

With the release of TX Text Control 31.0, we will fully support .NET 5, 6 and 7 (Preview) within Visual Studio 2022 including Windows Forms designer support, NuGet packages and deployment support.


ASP.NETWindows FormsWPF

Sneak Peek 31.0: Full .NET 6 Visual Studio Designer Support

The next version 31.0 is in the works and for .NET Windows Forms and WPF, we are working on enhancements to fully support .NET 6 features including Visual Studio design-time support, NuGet…


ASP.NETWindows FormsWPF

TX Text Control 33.0 SP3 is Now Available: What's New in the Latest Version

TX Text Control 33.0 Service Pack 3 is now available, offering important updates and bug fixes for all platforms. If you use TX Text Control in your document processing applications, this service…


ASP.NETWindows FormsWPF

TX Text Control 33.0 SP2 is Now Available: What's New in the Latest Version

TX Text Control 33.0 Service Pack 2 is now available, offering important updates and bug fixes for all platforms. If you use TX Text Control in your document processing applications, this service…


ActiveXASP.NETWindows Forms

Service Pack Releases: What's New in TX Text Control 33.0 SP1 and 32.0 SP5

TX Text Control 33.0 Service Pack 1 and TX Text Control 32.0 Service Pack 5 have been released, providing important updates and bug fixes across platforms. These service packs improve the…