Sneak Peek: Retrieving Timestamped Raw Signature Data
We are working on a feature for the Document Viewer that will return the raw signature data from the signature soft pad. This article will provide you with an overview of the functionality and the use cases.

The signature soft pad, which is included with the Document Viewer, is used to capture a signer's graphic signature. This SVG image is patched into the signature field and digitally signed.
This process is already secure because the data is added, the signature is added and the document is digitally signed and therefore tamper-proof. However, there are some legal requirements that make it necessary to prove that a signature belongs to a particular person. Therefore, the raw signature data will be available in a future version of the Document Viewer.
Signature Points
An array of SignaturePoint arrays is included in the SignatureData object passed by the viewer. The location of each captured signature point and a timestamp are stored in the SignaturePoint class.
Learn More
Learn how to handle signature requests server-side. The most common server-side Web API methods for handling electronic signatures are described in this article.
Common Web API Methods for Handling E-Signature Workflows in ASP.NET Core C#
Calculate the Duration
For example, you can use this jagged array to calculate the total time of signature capture.
[HttpPost]
public string HandleSignature([FromBody] SignatureData data) {
var signatureLines = data.SignatureLines;
var startTime = DateTimeOffset.FromUnixTimeMilliseconds(signatureLines[0][0].CreationTimeStamp).DateTime;
var endTime = DateTimeOffset.FromUnixTimeMilliseconds(signatureLines[0][signatureLines[0].Length - 1].CreationTimeStamp).DateTime;
var duration = endTime - startTime;
//...
}
This array could be serialized and stored in a database or encrypted in the document for later comparison with the actual signature stored for the signer. In the event that the signer doesn't have a specific signature stored, the way in which the signer creates his or her own signature can be played back and compared.
Replay the Signature
Based on the timestamps, the following JavaScript code replays the array, including the write speed.
async function handleSignature() {
const canvas = document.getElementById("signature");
const ctx = canvas.getContext("2d");
const signature = JSON.parse(json);
ctx.beginPath();
ctx.strokeStyle = "blue";
ctx.lineWidth = 5;
for (let i = 0; i < signature[0].length; i++) {
const { x, y, creationTimeStamp } = signature[0][i];
if (i === 0) {
ctx.moveTo(x, y);
} else {
const duration = creationTimeStamp - signature[0][i - 1].creationTimeStamp;
await drawLine(ctx, x, y, duration);
ctx.stroke();
}
}
}
function drawLine(ctx, x, y, duration) {
return new Promise((resolve) => {
setTimeout(() => {
ctx.lineTo(x, y);
resolve();
}, duration);
});
}
This can be used to compare a signer's actual signing with stored signature data.

The new feature adds an extra layer of security to the process of signing electronic documents.
Stay tuned for more features!
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.
- Angular
- Blazor
- React
- JavaScript
- ASP.NET MVC, ASP.NET Core, and WebForms
Related Posts
PDF/UA vs. PDF/A-3a: Which Format Should You Use for Your Business Application?
In this blog post, we will explore the differences between PDF/UA and PDF/A-3a, helping you choose the right format for your business needs. We will discuss the key features, benefits, and use…
Validating PDF/UA Documents in .NET C#
Creating accessible and compliant PDF documents is becoming an increasingly important requirement across industries. In this blog post, we explore how to validate PDF/UA documents using Text…
Sneak Peek: TX Text Control 34.0 Coming November 2025
We are excited to announce the upcoming release of TX Text Control 34.0, scheduled for November 2025. This update brings a host of new features and improvements to enhance your document processing…
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.NETASP.NET CoreDocument Viewer
High-Performance Text Replacement in Large DOCX Files using C# .NET
Learn how to efficiently replace text in large DOCX files using C# .NET and the ServerTextControl component from Text Control. This article demonstrates the performance benefits of using the…
