# Customizing the Electronic Signature Box

> An improved feature of the DocumentViewer allows the customization of the signature box to add additional information such as location information or IP addresses. This article shows how to use customized signature boxes.

- **Author:** Bjoern Meyer
- **Published:** 2021-03-03
- **Modified:** 2025-11-16
- **Description:** An improved feature of the DocumentViewer allows the customization of the signature box to add additional information such as location information or IP addresses. This article shows how to use customized signature boxes.
- **3 min read** (507 words)
- **Tags:**
  - ASP.NET
  - DS Server
  - Electronic Signature
  - PDF
- **Web URL:** https://www.textcontrol.com/blog/2021/03/03/customizing-the-electronic-signature-box/
- **LLMs URL:** https://www.textcontrol.com/blog/2021/03/03/customizing-the-electronic-signature-box/llms.txt
- **LLMs-Full URL:** https://www.textcontrol.com/blog/2021/03/03/customizing-the-electronic-signature-box/llms-full.txt

---

We published a new version of the ASP.NET MVC DocumentViewer with two new features:

- **Signature smoothing**  
    Signatures are simplified with an efficient line smoothing algorithm. Lines are captured as vectors, stored in arrays and finally de-noised and simplified in a post-process.
- **Customized signature boxes**  
    It is possible to define the content and style of the signature boxes in the template itself. Each signature box can have it's own individual style.

You can update the NuGet package with the current version to test these new features:

<https://www.nuget.org/packages/TXTextControl.Web.DocumentViewer/29.0.301.500>

### Signature Smoothing

In an earlier version, we introduced the smoothing algorithm for annotations, but now the same line smoothing feature is available for drawn signatures using the signature soft pad:

![Signature smoothing](https://s1-www.textcontrol.com/assets/dist/blog/2021/03/03/a/assets/smoothing.webp "Signature smoothing")

### Customized Signature Boxes

The signature box and the rendered information can now be completely customized. The following screenshot shows a customized signature box in the online document editor:

![Signature box](https://s1-www.textcontrol.com/assets/dist/blog/2021/03/03/a/assets/signature-box.webp "Signature box")

The signature box must be a TextFrame object with static content, merge fields, image placeholders or barcodes. It can contain all available elements that will be merged during the creation of the document.

In the view helper, custom data can be passed in the SignatureSettings class that is used to merge the custom signature box content. Any object can be used to pass the additional data to the signing process.

```
@Html.TXTextControl().DocumentViewer(settings =>
{
    settings.DocumentPath = Server.MapPath("~/App_Data/Documents/nda.tx");
    settings.Dock = DocumentViewerSettings.DockStyle.Fill;
    settings.SignatureSettings = new SignatureSettings()
    {
        ShowSignatureBar = true,
        OwnerName = "Paul Paulsen",
        SignerName = "Tim Typer",
        SignerInitials = "TT",
        SignatureBoxName = "txsign",
        UniqueId = uniqueID,

        CustomSignatureData = new SignatureData() {
            Barcode = "123",
            IPAddress = Request.UserHostAddress,
            Signer = "Tim Typer",
            UniqueID = uniqueID
        }

    };
}).Render()
```

Just like with templates prepared for MailMerge, properties of the given *CustomSignatureData* object are matched to merge field names in the *TextFrame*. The image placeholder name that should be replaced with the actual signature should have the name *TxSignatureImage* to get properly merged.

In case, *CustomSignatureData* is found in the settings, the custom content is used in the template. Otherwise, the default signature box is rendered like in previous versions of the DocumentViewer.

![Signature box](https://s1-www.textcontrol.com/assets/dist/blog/2021/03/03/a/assets/signature-box_render.webp "Signature box")

The above custom signature box renders the electronic signature, the given document ID, the IP address of the user, the signer's name and a time stamp. Additionally, a barcode is added that could be used to track the document. The QR Code could contain a link that opens a website to verify the document and validity.

Thanks to the flexibility and the way how the process of signing documents can be customized, any workflow can be implemented. Feel free to contact us to learn more about how Text Control can help you adding digital and electronic signatures to your business processes.

See these new features live in our live demos:

[Start demo ](https://demos.textcontrol.com/chapter/topic/DocumentViewer/ViewerSignature)

---

## About Bjoern Meyer

As CEO, Bjoern is the visionary behind our strategic direction and business development, bridging the gap between our customers and engineering teams. His deep passion for coding and web technologies drives the creation of innovative products. If you're at a tech conference, be sure to stop by our booth - you'll most likely meet Bjoern in person. With an advanced graduate degree (Dipl. Inf.) in Computer Science, specializing in AI, from the University of Bremen, Bjoern brings significant expertise to his role. In his spare time, Bjoern enjoys running, paragliding, mountain biking, and playing the piano.

- [LinkedIn](https://www.linkedin.com/in/bjoernmeyer/)
- [X](https://x.com/txbjoern)
- [GitHub](https://github.com/bjoerntx)

---

## Related Posts

- [Creation of Custom Electronic Signature Boxes](https://www.textcontrol.com/blog/2021/06/15/creation-of-custom-electronic-signature-boxes/llms.txt)
- [Electronic Signature Reference Implementation Demo](https://www.textcontrol.com/blog/2021/04/01/electronic-signature-reference-implementation-demo/llms.txt)
- [Extending DS Server with Custom Digital Signature APIs](https://www.textcontrol.com/blog/2025/10/09/extending-ds-server-with-custom-digital-signature-apis/llms.txt)
- [Sign Documents with a Self-Signed Digital ID From Adobe Acrobat Reader in .NET C#](https://www.textcontrol.com/blog/2024/08/12/sign-documents-with-a-self-signed-digital-id-from-adobe-acrobat-reader-in-net-c-sharp/llms.txt)
- [Whitepaper: Integrate On-Premise Electronic Signature Processes into Web Applications](https://www.textcontrol.com/blog/2022/03/07/whitepaper-integrate-onpremise-electronic-signature-processes-into-web-applications/llms.txt)
- [Document Viewer: Uploading Signatures](https://www.textcontrol.com/blog/2022/02/24/document-viewer-uploading-signatures/llms.txt)
- [Don't Print Your Documents! Streamlined Document Processes in Your Applications](https://www.textcontrol.com/blog/2021/06/09/dont-print-your-documents/llms.txt)
- [Importing Form Data from PDF Documents Exported from Chrome](https://www.textcontrol.com/blog/2021/02/11/importing-form-data-from-pdf-documents-exported-from-chrome/llms.txt)
- [Creating Adobe PDF Forms in C#](https://www.textcontrol.com/blog/2021/02/10/creating-adobe-pdf-forms-in-csharp/llms.txt)
- [Creating ZUGFeRD Compliant PDF Invoices in C#](https://www.textcontrol.com/blog/2021/02/03/creating-zugferd-compliant-pdf-invoices-in-csharp/llms.txt)
- [Using QR Codes in PDF Documents in C# .NET](https://www.textcontrol.com/blog/2026/04/21/using-qr-codes-in-pdf-documents-in-csharp-dotnet/llms.txt)
- [Programmatically Fill, Flatten, and Export DOCX Form Templates to PDF in C# .NET](https://www.textcontrol.com/blog/2026/04/10/programmatically-fill-flatten-and-export-docx-form-templates-to-pdf-in-csharp-dotnet/llms.txt)
- [Why Structured E-Invoices Still Need Tamper Protection using C# and .NET](https://www.textcontrol.com/blog/2026/03/24/why-structured-e-invoices-still-need-tamper-protection-using-csharp-and-dotnet/llms.txt)
- [Create Fillable PDFs from HTML Forms in C# ASP.NET Core Using a WYSIWYG Template](https://www.textcontrol.com/blog/2026/03/17/create-fillable-pdfs-from-html-forms-in-csharp-aspnet-core-using-a-wysiwyg-template/llms.txt)
- [Why HTML to PDF Conversion is Often the Wrong Choice for Business Documents in C# .NET](https://www.textcontrol.com/blog/2026/03/13/why-html-to-pdf-conversion-is-often-the-wrong-choice-for-business-documents-in-csharp-dot-net/llms.txt)
- [A Complete Guide to Converting Markdown to PDF in .NET C#](https://www.textcontrol.com/blog/2026/01/07/a-complete-guide-to-converting-markdown-to-pdf-in-dotnet-csharp/llms.txt)
- [Why PDF Creation Belongs at the End of the Business Process](https://www.textcontrol.com/blog/2026/01/02/why-pdf-creation-belongs-at-the-end-of-the-business-process/llms.txt)
- [Designing the Perfect PDF Form with TX Text Control in .NET C#](https://www.textcontrol.com/blog/2025/12/16/designing-the-perfect-pdf-form-with-tx-text-control-in-dotnet-csharp/llms.txt)
- [Why Defining MIME Types for PDF/A Attachments Is Essential](https://www.textcontrol.com/blog/2025/12/10/why-defining-mime-types-for-pdfa-attachments-is-essential/llms.txt)
- [Validate Digital Signatures and the Integrity of PDF Documents in C# .NET](https://www.textcontrol.com/blog/2025/11/14/validate-digital-signatures-and-the-integrity-of-pdf-documents-in-csharp-dotnet/llms.txt)
- [Validate PDF/UA Documents and Verify Electronic Signatures in C# .NET](https://www.textcontrol.com/blog/2025/11/13/validate-pdf-ua-documents-and-verify-electronic-signatures-in-csharp-dotnet/llms.txt)
- [How To Choose the Right C# PDF Generation Library: Developer Checklist](https://www.textcontrol.com/blog/2025/11/12/how-to-choose-the-right-csharp-pdf-generation-library-developer-checklist/llms.txt)
- [Why Digitally Signing your PDFs is the Only Reliable Way to Prevent Tampering](https://www.textcontrol.com/blog/2025/10/30/why-digitally-signing-your-pdfs-is-the-only-reliable-way-to-prevent-tampering/llms.txt)
- [Automating PDF/UA Accessibility with AI: Describing DOCX Documents Using TX Text Control and LLMs](https://www.textcontrol.com/blog/2025/10/16/automating-pdf-ua-accessibility-with-ai-describing-docx-documents-using-tx-text-control-and-llms/llms.txt)
- [Converting Office Open XML (DOCX) to PDF in Java](https://www.textcontrol.com/blog/2025/10/14/converting-office-open-xml-docx-to-pdf-in-java/llms.txt)
