Skip to main content

SigCaptX - Sample Code

Download

Samples are available for download from GitHub:

https://github.com/Wacom-Developer/stu-sdk-sigcaptx-samples

Installation

The samples require the Installation of:

  • Wacom STU SigCaptX (installation of the standard STU SDK is not required)

Installation of Wacom-STU-SigCaptX (the standard STU SDK installation is not required) The samples have been tested with Internet Explorer, Chrome and Firefox. WebSocket support is required, thereby excluding IE9.

Description

The samples demonstrate the use of Javscript with STU SigCaptX.

Note that the samples use console.log() so that their actions can be monitored.
To view the log in the browser press F12 then select 'console'.

PortCheck.html

Confirms operation of the web server.
The sample uses the default port 9000 to connect to the web server.
If a different port has been configured its value can be specified for the check.

SendToSTU.html

Confirms an STU connection and sends an image to the display. It demonstrates using wgssStuSdk.js.

Use the browse button to select one of the image files included with the sample, then click SendToSTU.
Click the Clear button to clear the STU display.

DemoButtons.html

Demonstrates signature capture and display, reproducing the standard STU SDK sample.

Click the Start button to start signature capture.
A signature capture dialog is displayed in the browser and reproduced on the STU display.
The OK, Clear and Cancel buttons can be selected on the tablet or browser window.

Tablet encryption

DemoButtons.html uses the crypto library sjcl.js for encryption functions.
To avoid any issues of non-compliance with licence requirements the library is not included with the samples.
The samples check for the presence of sjcl.js before calling the functions.
To enable encryption download the file sjcl.js from: Stanford Javascript Crypto Library (SJCL)

The homepage provides a direct link to the sjcl.js 'minified version'.
Copy the downloaded file to the DemoButtons folder to enable encryption.