Using the TX Text Control Document Viewer, electronic signatures can be requested from users to sign a pre-defined signature field. This signature field is then replaced with the acquired signature image and digitally signed using a digital certificate.
Instead of signing pre-defined fields, the latest version of the Document Viewer is able to acquire a signature image from users in order to insert the signature image as an annotation object to the document. Those annotation objects are stored independently from the document and can be retrieved using the annotations.export ╰ TX Text Control .NET Server for ASP.NET
╰ Annotations Object
╰ Export Method
Signature annotations can be added using a new button in the annotation toolbar:
Using the signature soft pad, multiple signatures can be drawn or uploaded. Those signatures are stored locally and can be used across sessions:
After placing a signature onto a document, they are part of the annotation collection.
When exporting the annotations as JSON using the annotations.export method, the placed signature is added as an SVG image. In this sample application, this JSON object is being sent to the HttpPost Controller method MergeAnnotations:
Inserting Annotations as Images
Server-side, the array of Annotation arrays is received as Annotation objects defined through the following model:
In the controller method, the SVG signature image representation of each annotation is used to create a new Image ╰ TX Text Control .NET Server for ASP.NET
╰ TXTextControl Namespace
╰ Image Class
An instance of the Image class represents an image in a Text Control document. object from a MemoryStream. Finally, the image is added to the document at the given location and page number.
After all images have been added, the document is saved and returned to the client. This way, those signature annotations can be also embedded into PDF documents.