The functionality of the interfaces differs in some cases; each description starts by specifying which interface the method or property is valid for.
SignData property
|
iPadSignotecSignatureDevice |
✔️ |
|
IPadTabletPC |
✔️ |
Contains the digitised signature in SignData format.
Only available after successfully calling Capture.
object SignData
VARIANT SignData
|
In |
Out |
Possible values |
Description |
|---|---|---|---|
|
|
✔️ |
(SignData) |
Data of the SignData structure |
SignDataBase64 property
|
iPadSignotecSignatureDevice |
✔️ |
|
IPadTabletPC |
|
Contains the digitised signature as a Base64-coded string.
Only available after successfully calling Capture.
string SignDataBase64
BSTR SignDataBase64
|
In |
Out |
Possible values |
Description |
|---|---|---|---|
|
|
✔️ |
Base64-coded string (SignData) |
Data of the SignData structure |
PadData property
|
iPadSignotecSignatureDevice |
✔️ |
|
IPadTabletPC |
✔️ |
Using this property is no longer recommended. Please use the SignData property instead.
For the PadTabletPC interface, the property contains the signature data in raw format as a string (null-terminated). The raw format contains the signature coordinates and the time values for them, amongst other things. For the IPadSignotecSignatureDevice interface, the property contains the SignData as a Base64-coded string.
Only available after successfully calling Capture.
object PadData
VARIANT PadData
|
In |
Out |
Possible values |
Description |
|---|---|---|---|
|
|
✔️ |
String object with wide character string |
Signature data in raw format |
Image property
|
iPadSignotecSignatureDevice |
✔️ |
|
IPadTabletPC |
✔️ |
Renders the current signature as an image (without additional biometric data). By default, the image is in TIFF format, but you can also choose a different format using SaveSignatureEx. To do this, SaveSignatureEx must be called before Capture. Depending on the format that is set, a byte array or a string is returned.
Only available after successfully calling Capture.
If the interface is used for tablet PCs, a global handle to the image is returned. After retrieval, it must be deleted from internal memory using the FreeHandle, SaveSignature, or SaveSignatureEx method. For the latter two methods, the parameter “bDeleteImage” must be set to true.
object Image
VARIANT Image
|
In |
Out |
Possible values |
Description |
|---|---|---|---|
|
|
✔️ |
Signature image |
|
|
String object with wide character string |
PadID property
|
iPadSignotecSignatureDevice |
✔️ |
|
IPadTabletPC |
|
Contains the unique identification number (ID) for the connected pad. Only available after successfully calling Capture.
string PadID
BSTR PadID
|
In |
Out |
Possible values |
Description |
|---|---|---|---|
|
|
✔️ |
String |
Identification number |
Capture method
|
PadSignotecSignatureDevice |
✔️ |
|
PadTabletPC |
✔️ |
This is used to collect signature data. A signature window is displayed on the corresponding hardware, in which the user can sign and then confirm the signature.
The signature data can then be accessed using the corresponding methods and properties.
In the event of an error (e.g., no hardware connected or incorrectly configured) or a termination (e.g., at the user’s request or due to an insufficient signature), the method returns an error code (HRESULT). In the event of serious errors, the user is informed of the type of error via a dialog box. The data structures for the signature remain empty in the event of an error.
Various image properties and pad settings can be changed before calling this method. The relevant methods are described here.
void Capture();
HRESULT Capture();
|
Return value |
Description |
|---|---|
|
0 |
Method was executed successfully |
|
-93 |
STPadCapt.ocx was not found. (See the section on setting up the component.) |
|
-94 |
The configured signature pad could not be accessed. |
|
-98 |
The user has selected the “Skip” button. This button must be configured with SelectDialog before the signing process. |
|
-99 |
The user cancelled the signature capture (by selecting “Cancel”). |
SaveSignature method
|
iPadSignotecSignatureDevice |
|
|
IPadTabletPC |
✔️ |
Saves the captured signature (corresponding to the Image property) as an image in the specified file.
This method can only be called after Capture has been called successfully.
The saved image is black and white (1-bit).
void SaveSignature(string bstrFileName,int bDeleteImage);
HRESULT SaveSignature(BSTR bstrFileName, long bDeleteImage);
|
Parameter
|
In |
Out |
Possible Values |
Description |
|---|---|---|---|---|
|
bstrFileName |
✔️ |
|
String |
Full, absolute path and file name of the TIFF file to be generated. |
|
bDeleteImage |
✔️ |
|
0 |
The image stored internally will not be deleted. |
|
|
1 |
The internally stored image is deleted after being saved to the file (equivalent to calling FreeHandle) and is no longer available. |
SaveSignatureEx method
|
iPadSignotecSignatureDevice |
✔️ |
|
IPadTabletPC |
✔️ |
Saves the captured signature stroke (corresponding to the Image property) as an image in the specified file.
The parameter “nImgType” defines the image format in which the signature stroke is to be saved.
With this method, saving is only possible after successfully calling Capture, but it can be called for IPadSignotecSignatureDevice before Capture to set the image format.
The saved image is black and white (1-bit).
void SaveSignatureEx(
string bstrFilename,
int nImgType,
int bTimeStamp,
int bDeleteImage
);
HRESULT SaveSignatureEx(
BSTR bstrFilename,
int nImgType,
long bTimeStamp,
long bDeleteImage
);
|
Parameter
|
In |
Out |
Possible Values |
Description |
|
|---|---|---|---|---|---|
|
bstrFilename |
✔️ |
|
String |
Full, absolute path and name of the image file to be generated |
|
|
nImgType |
✔️ |
|
0 - 3 |
Defines the image file format for saving the captured signature |
|
|
|
0 |
TIFF – fax group 4 |
|||
|
|
1 |
PNG |
|||
|
|
2 |
Windows bitmap. |
|||
|
|
3 |
For IPadTabletPC only: Windows bitmap with interpolated signature for a more uniform typeface |
|||
|
100 - 102 200 - 202 |
Only for iPadSignotecSignatureDevice: no saving, only setting image format and bTimeStamp |
||||
|
|
100 |
TIFF - fax group 4 as byte array |
|||
|
|
101 |
PNG as a byte array |
|||
|
|
102 |
Windows bitmap as byte array |
|||
|
|
200 |
TIFF - fax group 4 as a BASE64-coded character string |
|||
|
|
201 |
PNG as a BASE64-coded character string |
|||
|
|
202 |
Windows bitmap as a BASE64-coded character string |
|||
|
bTimeStamp |
✔️ |
|
0 |
No timestamp is added. |
|
|
1 |
A (visual) timestamp is placed in the signature below the signature field. |
||||
|
bDeleteImage |
✔️ |
|
0 |
The image stored internally will not be deleted. |
|
|
1 |
For PadTabletPC only: The internally stored image is deleted after being saved to the file (equivalent to calling FreeHandle) and is no longer available. |
||||
FreeHandle method
|
iPadSignotecSignatureDevice |
|
|
IPadTabletPC |
✔️ |
Releases the internally stored image of the current signature. (This corresponds to the Image property.)
void FreeHandle();
HRESULT FreeHandle();