thomasjbradley/signature-pad — Issue #13: API Documentation
Author: nismor240sx
Created: 2011-10-26 17:18:42+00:00
State: open

I am newish to jquery, etc and I have been trying for hours, but how do I use the getSignatureImage function? I cannot find anything anywhere on how to really use this correctly and nothing I do seems to work.

This is what I have now, but I know it is wrong. (the sig value is just an example for now)

$(document).ready(function() {
var sig = {lx:20,ly:34,mx:20,my:34}

var api = $('.sigPad').signaturePad({displayOnly:true})
api.getSignatureImage()
});

How do I get my signature to regenerate into the getSignatureImage? It would be great if this was documented on your site. I just am not really clear on how to use it.. am I supposed to be able to save the image somehow, or is it returning the image as to the browser?

The reason is because I am using a HTML to PDF component and it does not display the canvas. But will display an image.