Signotec Biometric Api en
Signotec Biometric Api en
signotec GmbH
Am Gierath 20 b
D-40885 Ratingen
Legal notice
All rights reserved. This document and the components it describes are products copyrighted
by signotec GmbH based in Ratingen, Germany. Reproduction of this documentation, in part
or in whole, is subject to prior written approval from signotec GmbH. All hardware and
software names used are trade names and/or trademarks of their respective
manufacturers/owners. Subject to change at any time without notice. We assume no liability
for any errors that may appear in this documentation.
© 2000 – 2017 signotec GmbH signotec Biometric API Dokumentation Seite 2 von 15
1 Documenten history
© 2000 – 2017 signotec GmbH signotec Biometric API Dokumentation Seite 3 von 15
2 Function overview
The signotec Biometric API contains the component SignKrnl.dll and several helper
components. The component SignKrnl.dll can be used to perform a biometric comparison of
pad signatures. At least two biometric data blocks (SignData format) are required.
Usually several reference signatures should be stored in a database, compared to a new
signature and the comparison reault should then be calculated as mean value.
The following table provides an overview of the components included in the signotec Biometric
API.
Dateiname Kurzbeschreibung
SignKrnl.dll Self-registering COM component for comparison for biometric
signature data
signtiff.dll Self-registering COM component used by the SignKrnl.dll. Needed
on 32 bit only.
libtif35.dll Native DLL used by the SignKrnl.dll.
signcap.dll Visual control element (ActiveX/COM) for capturing signatures.
This component is used by the sample applications and
documented in the signoAPI.
signcap.ini Control file for the signcap.dll.
STPadCapt.ocx Visual control element (ActiveX/COM) used by the signcap.dll.
STPad.ini Control file for the STPadCap.ocx.
Several Sample Applications and source code to demonstrate the functions of the
Applications SignKrnl.dll.
© 2000 – 2017 signotec GmbH signotec Biometric API Dokumentation Seite 4 von 15
3 System requirements
The signotec Biometric API for Windows can be run on all Windows versions as of Windows 7.
It was tested under the following systems:
- Windows 7
- Windows 8
- Windows 8.1
- Windows 10
3.1.1 Dependencies
The components, applications and their dependencies respectively contained in the Biometric
API sometimes require different versions of the Microsoft C++ libraries and / or the
Microsoft.NET framework. The following provides you with an overview of the libraries that are
required in each case (depending on the set-up variant for the x86 or x64 platforms):
The signoPAD API Setup automatically installs the ‘Visual Studio 2010 Redistributables’.
.NET 2.0 is not included in the signoPAD API and must be manually installed if necessary.
© 2000 – 2017 signotec GmbH signotec Biometric API Dokumentation Seite 5 von 15
4 General information on the signoPAD API components
The signotec Biometric API is available in both x86 (32-bit) and x64 (64-bit). Windows 64-bit
allows for the parallel installation of both set-ups.
The x86 version only contains components and applications that were compiled for the x86
platform. But both the set-up and all the components and applications can also be used on
32-bit and 64-bit versions of Windows.
The x64 version only contains components and applications that were compiled for the x64
platform. Both the set-up and all the components and applications can only be used on 64-bit
versions of Windows.
Since the two versions of the components differ neither in name nor in the interface, it does
not matter which one is used for development purposes. But the appropriate component for
the present target platform must be used in the implementation. The following table shows
which version of the components must be used for specific operating system or application
versions:
4.2 SignKrnl.dll
The SignKrnl.dll is self-registering and supports the Microsoft IDispatch interface. This makes
it equally available under environments such as .NET, Delphi, Visual C++ or Visual Basic.
The component must be registered in the system using regsvr32 so that all applications
access the same component.
Schnittstellenname IID
ISignEngn 02E2EBD6-73E3-4867-9592-33EF24325D1E
Schnittstellenname CLSID
ISignEngn 6531551D-3968-4DF9-9D2C-3F97AA039F14
For comapring tow signatures they must be available as SignData. This format is an
encrypted, compressed, biometric structur that can be stored in a database or as a tag in a
TIFF or PDF document.
© 2000 – 2017 signotec GmbH signotec Biometric API Dokumentation Seite 6 von 15
Please note that the SignKrnl.dll only supports the conventional SignData format. The new
RSA encrypted SignData format is currently only supported by signoPAD API components and
must be converted into the conventional format where required using one of these
components. Users of the RSA-encrypted format must have the appropriate private RSA key
otherwise the data cannot be decrypted. For more information please refer to the signoPAD-
API documentation.
You can, of course, redistribute individual files from the signotec Biometric API in a separate
Setup. Essentially, only the files SignKrnl.dll, signtiff.dll, and libtif35.dll as well as the
Microsoft Runtime files, are required. See also chapter ‘Dependencies’. The files SignKrnl.dll
and signtiff.dll must be registered in the system using regsvr32.
Komponente Installationspfad
SignKrnl.dll <Installation path>\Dll
signtiff.dll (32 bit only) <Installation path>\Dll
libtif35.dll <Installation path>\Dll
signcap.dll <Installation path>\Dll
signcap.ini <Installation path>\Dll
STPadCapt.ocx <Installation path>\Dll
STPad.ini %COMMONPROGRAMFILES%\signotec\Config or
%COMMONPROGRAMFILES(x86)%\signotec\Config
Various sample applications <Installation path>\Biometric API
including source code
Documentation <Installation path>\Biometric API\Documentation
© 2000 – 2017 signotec GmbH signotec Biometric API Dokumentation Seite 7 von 15
5 Methods
Compares the dynamic or static characteristics of two signatures and calculates a similarity
specified as a percentage value.
Note: The SignData property must be set before the function is called in order to ensure that
the component’s internal comparison memory is loaded (with the first signature). The second
signature is passed when the method is called.
Note: When using JavaScript or VBScript please call the VerifyVbs() method, otherwise no
return value will be generated (also see VerifyResult).
5.1.1.1 Implementation in C#
This method can be used to adjust the accuracy of the biometric signature comparison to suit
requirements.
© 2000 – 2017 signotec GmbH signotec Biometric API Dokumentation Seite 8 von 15
5.2.1.1 Implementation in C#
try
{
signEngn.SetVerifyQuality(1);
}
catch (Exception exc)
{
MessageBox.Show(exc.Message);
}
Generates an image of the signature from the data in the internal comparison memory. Only
functions once SignData has been set successfully.
© 2000 – 2017 signotec GmbH signotec Biometric API Dokumentation Seite 9 von 15
5.3.1.1 Implementation in C#
Sets all internal data to its initial values. Memory that is already allocated is returned to the
operating system.
HRESULT ResetAll()
Parameter Values I/O Description
- - - -
Return value Values Description
HRESULT S_OK Method was executed successfully
andere Error
© 2000 – 2017 signotec GmbH signotec Biometric API Dokumentation Seite 10 von 15
5.4.1.1 Implementation in C#
try
{
signEngn.ResetAll();
}
catch (Exception exc)
{
MessageBox.Show(exc.Message);
}
Sets the hardware-independent company licence key. Enables various functions and disables
the demo warning.
5.5.1.1 Implementation in C#
try
{
signEngn.SetLicenseKey("1234");
}
catch (Exception exc)
{
MessageBox.Show(exc.Message);
}
Loads the signature’s non-standard format (PadData) into the SignKrnl component’s internal
comparison memory. Verify() can be subsequently used to perform a comparison.
The use of this method is no longer recommended. Please use the newer SignData signature
format instead. This method is only included and documented for compatibility reasons (i.e.,
with older programs).
© 2000 – 2017 signotec GmbH signotec Biometric API Dokumentation Seite 11 von 15
5.7 LoadPadDataFromFile method
Loads a reference signature in non-standard format (PadData) from the specified file into the
SignKrnl component’s internal comparison memory. erify() can be subsequently used to
perform a comparison.
The use of this method is no longer recommended. Please use the newer SignData signature
format instead. This method is only included and documented for compatibility reasons (i.e.,
with older programs).
Loads a reference signature in the TIFF fax group 4 format into the SignKrnl component’s
internal comparison memory. Verify() can be subsequently used to perform a comparison.
An automatic cleaning process also takes place in the background.
The use of this method is no longer recommended. Please use the newer SignData signature
format instead. This method is only included and documented for compatibility reasons (i.e.,
with older programs).
All other methods are for internal use only und therefore not documented.
© 2000 – 2017 signotec GmbH signotec Biometric API Dokumentation Seite 12 von 15
6 Properties
For setting and fetching the signature to be compared in SignData format. Loads the signature
into the SignKrnl component’s internal comparison memory. Verify() can then be used to
perform a comparison. Can only ever load one signature.
VARIANT_BOOL SignData
Wert I/O Description
!= null I/O SignData as byte array in a VARIANT of the type VT_ARRAY
6.1.1.1 Implementation in C#
This property holds the same value as pResult from the Verify() call and returns the
comparison result after Verify() or VerifyVbs() has been called.
This is necessary, as the parameter value may not contain a result when JavaScript or
VBScript is used and so the result has to be fetched via this property.
VARIANT VerifyResult
Wert I/O Description
0 - 99 O VARIANT of the type VT_I4 containing the result of the
previous call to Verify() or VerifyVbs()
long XResolution
Wert I/O Description
> 0 I Horizontal resolution
6.3.1.1 Implementation in C#
try
{
signEngn.XResolution = 5461;
}
catch (Exception exc)
{
MessageBox.Show(exc.Message);
}
© 2000 – 2017 signotec GmbH signotec Biometric API Dokumentation Seite 13 von 15
long YResolution
Wert I/O Description
> 0 I Vertical resolution
6.4.1.1 Implementation in C#
try
{
signEngn.YResolution = 4096;
}
catch (Exception exc)
{
MessageBox.Show(exc.Message);
}
long TabletSizeLogWidth
Wert I/O Description
> 0 I Width of the signature field
6.5.1.1 Implementation in C#
try
{
signEngn.TabletSizeLogWidth = 640;
}
catch (Exception exc)
{
MessageBox.Show(exc.Message);
}
long TabletSizeLogHeight
Wert I/O Description
> 0 I height of the signature field
6.6.1.1 Implementation in C#
try
{
signEngn.TabletSizeLogHeight = 480;
}
catch (Exception exc)
{
MessageBox.Show(exc.Message);
}
© 2000 – 2017 signotec GmbH signotec Biometric API Dokumentation Seite 14 von 15
6.7 Other properties
All other properties are for internal use only und therefore not documented.
© 2000 – 2017 signotec GmbH signotec Biometric API Dokumentation Seite 15 von 15