Usage
The SignDoc Browser Capture library can be found in the sdbc subfolder of the SignDoc SDK shipment:
sdbc/sdbc.js
Add JavaScript library to your webpage.
<head>
<script src="sdbc.js"></script>
Create instance of class DeviceConnector and call instance method captureSignature() to start capturing a handwritten signature asynchronously.
Once the signature capturing is finished, the Promise is resolved with the capture result. Or, in case of an error, the Promise is rejected with an error message.
For more details on the captureSignature() method, see SignDoc Browser Capture API.
var deviceConnector = new deviceconnector.DeviceConnector();
deviceConnector.captureSignature().then(
(result) => {
// Process result
}
).catch(
(error) => {
// Process error
}
);