Search results

Hand Written Signature in ASP.NET MVC PDF Viewer control

18 Oct 2021 / 2 minutes to read

The PDF Viewer control supports adding handwritten signatures to a PDF document. The handwritten signature reduces the paper work of reviewing the content and verifies it digitally.

The following code snippet describes how to enable the handwritten signature in PDF Viewer.

Copied to clipboard
@Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/PdfViewer/")).EnableHandwrittenSignature(false).DocumentPath("HTTP Succinctly.pdf").Render()

Adding a handwritten signature to the PDF document

The handwritten signature can be added to the PDF document using the annotation toolbar.

  • Click the Edit Annotation button in the PDF Viewer toolbar. A toolbar appears below it.
  • Select the HandWritten Signature button in the annotation toolbar. The signature panel will appear.


  • Draw the signature in the signature panel.


  • Then click Create button and move the signature using the mouse and place them in the desired location.


Editing the properties of handwritten signature

The stroke color, border thickness, and opacity of the handwritten signature can be edited using the edit stroke color tool, edit thickness tool, and edit opacity tool in the annotation toolbar.


Refer to the following code snippet to set the default handwritten signature settings.

Copied to clipboard
@Html.EJS().PdfViewer("pdfviewer").ServiceUrl(VirtualPathUtility.ToAbsolute("~/PdfViewer/")).HandWrittenSignatureSettings(new Syncfusion.EJ2.PdfViewer.PdfViewerHandWrittenSignatureSettings { Opacity = 1, Thickness = 2 }).DocumentPath("HTTP Succinctly.pdf").Render()

See also