Using a signature pad with PHP5

I'm trying to use a signature pad to capture signatures online.

I've got this source code from the manufacturer:

$aConn = new COM("SIGPLUS.SigPlusCtrl.1");
$aConn->SigCompressionMode = 1;
$aConn->ImageFileFormat = 4; //4=jpg, 0=bmp, 6=tif
$aConn->ImageXSize = 500; //width of resuting image in pixels
$aConn->ImageYSize =165; //height of resulting image in pixels
$aConn->ImagePenWidth = 11; //thickness of ink in pixels
$aConn->JustifyMode = 5;  //center and fit signature to size


Open in new window

But from everything I can find, I can't use the COM class in PHP5 & there is no replacement ...

What do I do ???

TIA Experts !!
Who is Participating?
tsmgeekConnect With a Mentor Commented:
1. does it load the ActiveX component on the user browser, if not then the drivers need to be installed first on the client computer, use the sign.php file
2. what error happens when the createimg.php is run on the webserver, has the activex component been installed on server
3. is the webserver on windows or linux (im sure that you can only have it on windows), if its linux then you may be stuck as COM does not exist, there may be a workaround, i wander if they are just transfering an image though the POST but without more debug info i cant work that out.
Lukasz ChmielewskiCommented:
You can't ? I have PHP 5 and I'm using COM model for winmgmt.
ImaginxAuthor Commented:
Roads, I didn't say that with certainty ... I read an article on it ...
And i'm not too familiar with the COM object.
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Lukasz ChmielewskiCommented:
How did you (if you did) try to integrate this into your code ?
ImaginxAuthor Commented:
Tsmgeek, thanks but that's the sample script I posted.
ImaginxAuthor Commented:
Roads, I used the two php files @ the link the Tsm posted. I changed nothing - just to try it out. It faults with their default code.
Lukasz ChmielewskiCommented:
With Internet Explorer ?
ImaginxAuthor Commented:
Yes'r .. Testing with IE8 ... My users are on everything from IE6=<
Lukasz ChmielewskiCommented:
The COM model has to be on Windows.
ImaginxAuthor Commented:
The Active X did install.

When running the createimg.php file, it returns:
"Fatal error: Class 'COM' not found in /Users/admin/Sites/Projects/tcpdf/sigplus/createimg.php on line 8"

The webserver is linux, both in developement & production environments.

I JUST found another way to achieve the desired results using Javascript ...
The Javascript method (from a very early stage) looks like it's going to be a much better method anyhow.
Definitely seems more efficient .. Been 'trying" to communicate with Topaz Systems -> the manufacturer.

Thank You Tsmgeek.
@Imaginx: I am looking for a similar soluton, were you able to utilize javascript in your environment to achieve the desired results?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.