brinley / jSignature

jQuery plugin for adding web signature functionality
http://www.unbolt.net/jSignature
691 stars 529 forks source link

Predefined dynamic text #134

Open tsaritepe opened 7 years ago

tsaritepe commented 7 years ago

I could not figure out how to add dynamic predefined text on canvas? I wanna print for example the date or customer name before takinf signature of customer but how?

I saw some examples on w3schools.com like

var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d");

ctx.font="20px Georgia"; ctx.fillText("Hello World!",10,50);

but when i try getcontxt i am getting error like canvas.getContext('2d'); is not a function