We released a new version of the DocumentViewer for ASP.NET Core and ASP.NET that supports server-side signature processing and custom signing processes.
More information and installation instructions can be found in our NuGet Gallery.
Default Signing Process
In the default signing process, users sign a document and click the Submit button to submit the signature data such as the electronic signature image and form field data. The server-side DocumentViewer controller is processing the signature and creates a document with the patched electronic signature. This document is then returned to a client-side callback that is defined through the signatures.setSubmitCallback method:
From there, it can be used to create a digitally signed PDF in a separate, external method. The overall workflow is shown in the following sequence diagram:
After the user signed the document, the electronic signature is patched to the document and forwarded to the given URL including signature data such as the signature image and timestamp information. The following sequence diagram shows this workflow:
A custom HttpPost method can be used to handle the signature data:
The public SignatureData model is part of the DocumentViewer:
This data can be used to process the signed document in a separate, custom process without sending the document back from client-side for further processing. In the above sequence diagram can be seen that the return value of the custom controller method is forwarded to the callback that has been defined using setSubmitCallback. This return value can be simply a 200, the complete document or anything else.
Redirect and Custom Signing
In this case, only the signature data is forwarded to the given URL for custom processing:
Whether for security reasons or custom signature requirements, it might be useful to handle the signature process completely server-side. A new feature can be used to retrieve signature data such as the electronic signature image data, timestamp and other related information for a custom signing process.
Feel free to reach out to us, if you have any questions about these workflows. Our engineers can help with your custom requirements for a secure, reliable and integrated electronic signature workflow.