- Open Signature
- Save Signature
- Save with Background
Contact Support
Open and Save Signature
6 Apr 202210 minutes to read
The Signature control supports to open the signature by using hosted/online URL or base64. And it also supports various save options like image, base64, and blob.
Open Signature
The signature control opens a pre-drawn signature as either base64 or hosted/ online URL using the load
method. It supports the PNG, JPEG, and SVG image’s base64.
<div class='wrap'>
<div id="input">
<input type="text" id="text" placeholder="Enter the Base64 or URL of signature">
@Html.EJS().Button("btn").Content("Open").IsPrimary(true).Render()
</div>
<div id="signature-control">
@Html.EJS().Signature("signature").Render()
</div>
</div>
<script>
document.getElementById("btn").addEventListener('click', function () {
var signature = document.getElementById("signature").ej2_instances[0];
var sign = document.getElementById("text").value;
signature.load(sign);
});
</script>
<style>
.wrap {
margin: 0 auto;
width: 500px;
text-align: center;
}
#signature {
border: 1px solid lightgray;
height: 100%;
width: 100%;
}
#input {
margin-bottom: 30px;
}
#text {
height: 30px;
width: 350px;
}
</style>
public ActionResult Default()
{
return View();
}
Output be like the below.
Save Signature
The Signature control saves the signature as base64, blob, and image like PNG, JPEG, and SVG.
Save as Base64
The getSignature
method is used to get the signature as base64 with the PNG, JPEG, and SVG type. This can be loaded to signature using load
method.
<div class='wrap'>
<h4>Sign here</h4>
<div id="signature-control">
@Html.EJS().Signature("signature").Render()
</div>
@Html.EJS().Button("btn").Content("Save as Base64").IsPrimary(true).Render()
@Html.EJS().Dialog("dialog").Width("80%").Header("Base64 of the signature").Visible(false).ShowCloseIcon(true).Render()
</div>
<script>
document.getElementById("btn").addEventListener('click', function () {
var signature = document.getElementById("signature").ej2_instances[0];
var dialogObj = ej.base.getInstance(document.getElementById("dialog"), ej.popups.Dialog);
dialogObj.content = signature.getSignature();
dialogObj.show();
});
</script>
<style>
.wrap {
margin: 0 auto;
width: 500px;
}
#signature {
border: 1px solid lightgray;
height: 100%;
width: 100%;
}
#btn {
margin-top: 30px;
}
</style>
public ActionResult Default()
{
return View();
}
Output be like the below.
Save as Blob
The saveAsBlob
method is used to saves the signature as Blob. It is defined as the chunk of binary data stored as a single entity in a database system.
Save as Image
The save
method is used to saves the signature as an image. And it accepts file name and file type as parameter. The file type parameter supports PNG, JPEG, and SVG and the default file type is PNG.
<div class='wrap'>
<div>
<span>Sign here</span>
@Html.EJS().SplitButton("btn").IconCss("e-sign-icons e-save").Content("Save").Items(ViewBag.datasource).Select("onSelect").Render()
</div>
<div id="signature-control">
@Html.EJS().Signature("signature").Render()
</div>
</div>
<script>
function onSelect(args) {
var signature = document.getElementById("signature").ej2_instances[0];
signature.save(args.item.text, "Signature");
}
</script>
<style>
.wrap {
margin: 0 auto;
width: 500px;
}
#signature {
border: 1px solid lightgray;
height: 100%;
width: 100%;
}
.e-split-btn-wrapper {
float: right;
margin-bottom: 5px;
margin-right: 50px;
}
@@font-face {
font-family: 'font-icons';
src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAAKAIAAAwAgT1MvMj1tSfwAAAEoAAAAVmNtYXDOQM6IAAABqAAAAE5nbHlmPRFAxQAAAhAAAAlsaGVhZB6WKa0AAADQAAAANmhoZWEIUQQLAAAArAAAACRobXR4KAAAAAAAAYAAAAAobG9jYQowB4oAAAH4AAAAFm1heHABIAGEAAABCAAAACBuYW1lbLYTYgAAC3wAAAJJcG9zdIlCId8AAA3IAAAAjwABAAAEAAAAAFwEAAAAAAAD9AABAAAAAAAAAAAAAAAAAAAACgABAAAAAQAAc7rwy18PPPUACwQAAAAAAN3B8l4AAAAA3cHyXgAAAAAD9AP0AAAACAACAAAAAAAAAAEAAAAKAXgADAAAAAAAAgAAAAoACgAAAP8AAAAAAAAAAQQAAZAABQAAAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA5wDnCgQAAAAAXAQAAAAAAAABAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAAAAAIAAAADAAAAFAADAAEAAAAUAAQAOgAAAAYABAABAALnAecK//8AAOcA5wT//wAAAA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XdmAAAA) format('truetype');
font-weight: normal;
font-style: normal;
}
.e-sign-icons {
font-family: 'font-icons' !important;
font-size: 55px;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.e-save::before {
content: '\e701';
}
</style>
public ActionResult Default()
{
List<object> items = new List<object>();
items.Add(new
{
text = "Png"
});
items.Add(new
{
text = "Jpeg"
});
items.Add(new
{
text = "Svg"
});
ViewBag.datasource = items;
return View();
}
Output be like the below.
Save with Background
The saveWithBackground
property is used to saves the signature with its background and its default value is true. So, by default the signature is saved with its background.
In the following sample, the background color is set as ‘rgb(103 58 183)’ and save with background as true.
<div class='wrap'>
<div>
<span>Sign here</span>
@Html.EJS().SplitButton("btn").IconCss("e-sign-icons e-save").Content("Save").Items(ViewBag.datasource).Select("onSelect").Render()
</div>
<div id="signature-control">
@Html.EJS().Signature("signature").BackgroundColor("rgb(103 58 183)").Render()
</div>
</div>
<script>
function onSelect(args) {
var signature = document.getElementById("signature").ej2_instances[0];
signature.save(args.item.text, "Signature");
}
</script>
<style>
.wrap {
margin: 0 auto;
width: 500px;
}
#signature {
border: 1px solid lightgray;
height: 100%;
width: 100%;
}
.e-split-btn-wrapper {
float: right;
margin-bottom: 5px;
margin-right: 50px;
}
@@font-face {
font-family: 'font-icons';
src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAAKAIAAAwAgT1MvMj1tSfwAAAEoAAAAVmNtYXDOQM6IAAABqAAAAE5nbHlmPRFAxQAAAhAAAAlsaGVhZB6WKa0AAADQAAAANmhoZWEIUQQLAAAArAAAACRobXR4KAAAAAAAAYAAAAAobG9jYQowB4oAAAH4AAAAFm1heHABIAGEAAABCAAAACBuYW1lbLYTYgAAC3wAAAJJcG9zdIlCId8AAA3IAAAAjwABAAAEAAAAAFwEAAAAAAAD9AABAAAAAAAAAAAAAAAAAAAACgABAAAAAQAAc7rwy18PPPUACwQAAAAAAN3B8l4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bgBnACAAUwB5AG4AYwBmAHUAcwBpAG8AbgAgAE0AZQB0AHIAbwAgAFMAdAB1AGQAaQBvAHcAdwB3AC4AcwB5AG4AYwBmAHUAcwBpAG8AbgAuAGMAbwBtAAAAAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgECAQMBBAEFAQYBBwEIAQkBCgELAAdzYXZlXzAyB3NhdmUtMDEHZWRpdF8wMwdlZGl0XzAxBWNsZWFyDHBhaW50LWJ1Y2tldA9wYWludC1idWNrZXQtd2YGaW1hZ2VzC3BpY3R1cmVzLXdmAAAA) format('truetype');
font-weight: normal;
font-style: normal;
}
.e-sign-icons {
font-family: 'font-icons' !important;
font-size: 55px;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.e-save::before {
content: '\e701';
}
</style>
public ActionResult Default()
{
List<object> items = new List<object>();
items.Add(new
{
text = "Png"
});
items.Add(new
{
text = "Jpeg"
});
items.Add(new
{
text = "Svg"
});
ViewBag.datasource = items;
return View();
}
Output be like the below.