This topic is locked
[SOLVED]

 Signature Pad

4/5/2018 5:48:00 PM
PHPRunner General questions
T
Tempus_Erus author

I have the signature pad but would like to add a background image (JPG/PNG) then save the image and the signature as a single image.
Any ideas appreciated?
Thanks
Adrian

admin 4/6/2018

yes, it can be done. See init script sample from the latest build:

// signature field height

$this->settings["height"] = 100;

// signature field width

$this->settings["width"] = 300;

// signature background color

$this->settings["bgcolor"] = "#ffffff";

// set it to true to make signature field required

$this->settings["required"]=false;

// folder to store signature files

$this->settings["folder"]="files";

// signature background image

// $this->settings["bgimage"] = "https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=84745&image=1&table=forumreplies";;

$this->settings["bgimage"] = "";

// signature pen color

$this->settings["color"] = "#145394";

// signature line width

$this->settings["linewidth"] = 2;
T
Tempus_Erus author 4/8/2018



yes, it can be done. See init script sample from the latest build:

// signature field height

$this->settings["height"] = 100;

// signature field width

$this->settings["width"] = 300;

// signature background color

$this->settings["bgcolor"] = "#ffffff";

// set it to true to make signature field required

$this->settings["required"]=false;

// folder to store signature files

$this->settings["folder"]="files";

// signature background image

// $this->settings["bgimage"] = "https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=84758&image=1&table=forumreplies";;

$this->settings["bgimage"] = "";

// signature pen color

$this->settings["color"] = "#145394";

// signature line width

$this->settings["linewidth"] = 2;



Perfect thanks. Upgraded all working.