+
Stamp/Seal
Sign (Client)
Sign (Notary)
+
Add Text
Cancel
-
diff --git a/src/js/drawtools.js b/src/js/drawtools.js
index 630bc4a..ca7aac0 100644
--- a/src/js/drawtools.js
+++ b/src/js/drawtools.js
@@ -43,6 +43,31 @@ function makeStampImage(callback) {
});
}
+function activateTextTool() {
+ var text = prompt("");
+ if (text == "") {
+ return;
+ }
+ var canvas = document.createElement('canvas');
+ canvas.width = 2000;
+ canvas.height = 400;
+ var ctx = canvas.getContext('2d');
+
+ ctx.font = "50px sans-serif";
+ ctx.fillText(text, 0, 50);
+
+ const image = new Image();
+ image.src = canvas.toDataURL();
+ image.width = 500;
+ image.height = 100;
+
+ activeDrawImage = image;
+
+ image.onload = function () {
+ enableGuideBox(activeDrawImage);
+ };
+}
+
function activateStampDrawTool() {
makeStampImage(function (image) {
activeDrawImage = image;