103 comments found.
Will not save?
Thanks for buying my software.
It’s possible one of the following…
- you haven’t set proper permissions on your “tmp” directory to 777. - or there isn’t a tmp directory. If not, create one and set it to 777. - or you have specified an incorrect path.
Hope this helps
I purchased twice…but how can I get my new license to work on the new site. Not working
There isn’t any licence required for this. What message are you getting?
Hello
Thanks very much for this, I love it.
I write because I would be interested in knowing if there is any way I can use more than 1 colour for signatures ? Not only one colour or automatic switch to it.
Thanks
Hi imean33,
Thanks for buying my software. On the next version release I will be adding that feature. 
The image is saved to the server hosting the script and the visitor gets to down it also, correct?
The download ability is part of the “demo” only. Of course, you can use that live as well.
But the actual production files only saves to a directory. This way, you can do whatever you wish with them.
Hi:
I like your script and I would like to buy it, but first I need to know if I can use this to get a sign from a client using a form in a website and send the signature file with all the form fields to my email address?
Like when we need to get a approval sign, using a form?
Please, let me know..
Thanks!
Hi Skyblue7,
When it saves the signature, it passes back the signature file name so you can use it however you wish. So in your scenario, you can take that value and dynamically add it to a form field. Then when you process your form, simply create your script to fetch that saved file.
Once the actual signature is generated (as a PNG ), it’s up to you to access it however you wish. It’s simply stored in a directory.
Hope this helps 
this looks great – would it be possible to save the signature and send it along as part of a form via email?
cheers
jay
It does save the signature and outputs it to a PNG image with transparency to a directory of choice. However, it’s up to you to decide what to do with the signature afterwards. So you can wrte up a script of your own to handle the emailing 
Can you may say me the variable where base64 is submit via post to php?
I’m sorry, I didn’t quite understand your question. Please rephrase that.
How will the image sources passed? as base64 string? I ask becasue need to know how i may can get it using ASP .NET before i purchase. Please let me know asap.
Yes, it’s converted to based64 and passed through via post. Keep in mind however, if you’re using ASP , you’ll need to make an an equivelant “dd_signature_process.php” page and have proper Imagick/GD DLLs
Hope this helps.
Can you may say me the variable where base64 is submit via post to php?
Hi mrFreelancer,
Thank you for the great script! I do have a question.
When the user saves their signature, the file name is always the same. This causes the previously saved png file to be overwritten on my server.
My issue is that if two or more people were using this on my website at the same time they might download each others signatures accidentally. This could happen if they both click the save button at the same time.
I did work on this problem and found a solution for half of it. I added . rand(0,100000) to the customizable field you have in your php file $dd_savePath=str_replace('\\','/',dirname(__FILE__))."/tmp". rand(0,100000);. This made unique tmp directories with the files inside. So I have access to all the signatures generated and the signature png files are not being overwritten/erased. My problem is that now when a user goes to click on their signature png file to download, they download a file called dd_signature_process.php (different content from the source php file included in the script). It will not let them download their signature even though it is saved automatically on my server when they select the saved button.
Here is the contents of the php file they are prompted to download: <br />
<b>Warning</b>: filesize() [<a href="function.filesize">function.filesize</a>]: stat failed for /home/mydirectory/public_html/my-site/beta/tmp91097/your_signature.png in <b>/home/mydirectory/public_html/my-site/beta/dd_signature_process.php</b> on line <b>94</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/mydirectory/public_html/my-site/beta/dd_signature_process.php:94) in <b>/home/mydirectory/public_html/my-site/beta/dd_signature_process.php</b> on line <b>94</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/mydirectory/public_html/my-site/beta/dd_signature_process.php:94) in <b>/home/mydirectory/public_html/my-site/beta/dd_signature_process.php</b> on line <b>95</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/mydirectory/public_html/my-site/beta/dd_signature_process.php:94) in <b>/home/mydirectory/public_html/my-site/beta/dd_signature_process.php</b> on line <b>96</b><br />
<br />
<b>Warning</b>: readfile(/home/mydirectory/public_html/my-site/beta/tmp91097/your_signature.png) [<a href="function.readfile">function.readfile</a>]: failed to open stream: No such file or directory in <b>/home/mydirectory/public_html/my-site/beta/dd_signature_process.php</b> on line <b>98</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/mydirectory/public_html/my-site/beta/dd_signature_process.php:94) in <b>/home/mydirectory/public_html/my-site/beta/dd_signature_process.php</b> on line <b>99</b><br />
Do you have any ideas? Is there an easier way to solve this problem?
Thank you,
Stanley
Hi Stanley, thanks for buying my software.
The downloading of the php file is occuring because it can’t find the reference to the signature image generated…. and of course, this is because you’re creating unique directories.
To resolve all this would be to “not” have unique directories. You can still have unique file names however. There’s two easy ways you can do so….
1. You can add a unique “prepended” value to the php var $prependSig. Actually, that’s the purpose of it. And it’ll be echoed back to you and picked up by the ajax incase you need to process it later.
2. In the dd_signature_pad.js file inside the window.addEventListener() method, and after dd_buildStructure() method call, you can add a script that will randomly change the value of the javascript var “dd_outputFileName”.... (in the settings).
Hope this helps! 
Hi mrFreelancer,
Thank you for your response. It was very helpful! I got it to work!
I used the first way you mentioned and added this code: $prependSig=('mysig_'.date(Y.m.d.i.s.u).'_').'.png';. The “u” only works in PHP 5 .2.2 and above incase anyone else wanted to use it.
The last thing I am working on is the same thing Thorsky wanted to do which is to add an image (background) to the canvas element itself. This way the user can write on the image and when they save, it saves the image and what they drew on it.
I tried several variations of the code you posted in response to Thorsky’s inquiry but I have not been able to get it to work. I also tried other ideas on how to add an image to the canvas like the one shown on the w3schools website http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_canvas_image to no avail. Is the canvas in the script labeled “mycanvas”, “Canvas”, or does it even matter? Any further ideas or clarification would be very helpful.
I understand that adding an image to the canvas is outside the scope of your script I purchased so no worries. I do love the script and recommend it!
Thanks!
Actually, the script I wrote for Thorsky above were mostly hypothetical values. It will work if you reference the proper objects/elements. The canvas element ID is “dd_canvas”. Remember though, all the elements are dynamically generated so you’ll have to call your custom method to add the image AFTER the signature objects load (completes).
Hello mrFreelancer, is possibile to change white box size and use multiple colors on same signature? thank you
Hi gian55,
Yes, you can change the background color of the signature box (canvas). To do so, simply use CSS to reference the canvas element ID #dd_canvas.
At the current moment, you can only use one color at a time. But it’s a consideration for the next version release.
any extended version ?
Yes, I’ve been slowly working on a new version actually. However, being that I have a full time job, I don’t have a lot of time to dedicate to it.
Any suggestions or requests?
can the canvas be larger ?
Yep, simply edit the settings in the dd_signature_pad.js file. Or you can write your own method to enlarge it after load.
Hello,
is it possible to sign on mobile web(ex: android browser)?
Thanks.
Hi Pandol22,
Thanks for buying my software.
Unfortunately, not all Android browsers support “touch” events (that allows you you to “draw” on the canvas). For example, the native android browser “does” support it (as I have tested it), but it doesn’t support exporting to image. Firefox for android for example does not support “touch” events yet.
However, iphones & ipads are supported.
How can this be edited so that the signature box (dd_signature_pad.js) automatically expands to the with of the screen it is being used in?
Thanks for purchasing this software and for your support.
This current version doesn’t support this feature. However, you can still manually set width and height via the var ‘dd_baseCanvas’. So if you have some javascript knowledge (+html5), you should be able to come up with a script to do just that.
Is it possible to use keyboard to type text on my own image background?
Best Regards Icemanmx
At the current moment, it’s not possible. But it’s an idea for the next release.
Thanks!
Give me your price, and you can also sell it here on codecanyon.
Stand alone version and also wp plugin.
Best Regards Icemanmx
Hi Icemanmx,
Send me a private email and I”ll get back to you a few hours. Away from my office at the moment.
nice script
I have a prokect where they need to write directly on an image that has been uploaded.
Can this script write be adjusted to write on an image that is uploaded.
Thanks
HI Thorsky,
Thanks for buying my software. The easiest way is to simply add an image to the canvas element itself. You can do this by creating an image object and using the method “drawImage()” to apply it after the canvas loads.
Here’s a quick example…
var x=0;
var y=0;
var objCavas=document.getElementById(‘canvas’);
var context=objCanvas.getContext(‘2d’);
var objImg=new Image();
objImg.src=”imagepath/my_image.jpg”;
objImg.onload=function() {
context.drawImage(objImg,x,y);
}
Hope this helps!
Hi,
I bought your plugin.
Do you have a sample for using this plugin in MVC (asp.net)?
I have no PHP skills 
Thanks Mojo
Thank you for your support Mojo.
The only file you will need to convert to an ASP equivalent is the “dd_signature_process.php”. Everything else will work fine.
Since I know little about ASP , I can’t really whip up a sample for you. However, I can point you to a url that will guide you in setting up a GD wrapper that should do the trick…..
http://www.codeproject.com/KB/asp/GDLibraryWrapper.aspxHope this helps!
Fantastic Job! , This is fantastic… So fantastic I have made it into a little project of mine at http://signspark.info ...
Keep Up The Good Work! ,
Thanks, Jake
I’m glad you can put it to good use. Always makes me feel good!
Thank you.
Incredible plugin!
Thank you so much! These positive comments are always encouraging and makes me look forward to improving it further.