Skip to main content

Dynamic Capture

DynamicCapture

Summary

Method
Capture
GetProperty
SetProperty
Property
Licence

The DynamicCapture object provides the user interface for the capture of a signature.

Methods

Capture

Displays a Signature Capture Window in which a user may sign his or her name using a suitable digitizing tablet. The window contains three buttons by which the user can either clear the currently rendered signature (Clear button) or dismiss the window without capturing a signature (Cancel button) or dismiss the window and capture the currently rendered signature (OK button).

DynamicCaptureResult Capture(SigCtl, Who, Why, What, Key)
Parameters
SigCtlSigCtl or SigCtlXHTML object.
WhoString specifying the signatory name.
Optional if InputWho property of SigCtl is set.
WhyString specifying the reason for signing.
Optional if InputWhy property is set.
WhatHash object
Derived from the data set with which the captured signature is to be bound. Typically, the data set will be the contents of the document or form signed by the user.
SigCtlXHTML: The hash is generated automatically from the contents of the XHTML document and cannot be supplied here.
(Optional)
KeyKey object
Supplied in order to detect malicious or accidental tampering with the signature object or the signature data it contains.
SigCtlXHTML: Key type SHA-256 is used automatically, but an alternative can be specified.
(Optional)
Return Value
DynamicCaptureResult
ValueDescription
DynCaptOKSignature captured successfully.
DynCaptCancelSignature not captured because the user canceled the Signature Capture Window.
DynCaptPadErrorNo capture service available; typically, no functioning digitizing tablet or other device for capturing signatures found.
DynCaptErrorSystem error or some other unusual error condition.
DynCaptAbortSignature not captured because the handler for the PreCapture event returned False. With SigCtlXHTML, this can indicate a failure to parse document contents.
DynCaptNotLicensedThe component has not been licensed to perform capture. This may be because a suitable license has not been set or because a condition of the license has not been met, for example, required hardware, such as a particular tablet type, was not found.

GetProperty

Returns the current value of a property.

GetProperty
Parameters
NameThe name of the property to retrieve.
Return Value
Variant
- Variant: Current value of the named property.
- Empty: If no value has been set.

SetProperty

Sets the value of a named additional property, overrides a value set in the registry.

SetProperty
Parameters
NameString. Name of the property.
ValueValue to assign to the property.
Return Value
Boolean
- True: Name exists and value is valid.
- False: Failed to set property.

Properties

PropertyTypeDescription
LicenceStringThe license object or string.

Properties supported by GetProperty/SetProperty

NameGet/SetTypeDescription
LicenceGet/SetStringString containing the license used for signature capture
Component_FileVersionGetStringComponent version e.g. "4.5.2.210"
UILanguageGet/SetStringSelects the language used in the signature capture dialog.
For details, see SigObj properties
WhereGet/SetStringSpecifies the location of signing. Displayed in the signature capture dialog and saved in the signature data
CaptureInkColorGet/SetStringColor of 'ink' used to render the signature image as a comma separated decimal RGB value.

e.g. for Blue:
setProperty("CaptureInkColor", "0,0,1")
Individual color values are in the decimal range 0.0 to 1.0, factoring the RGB maximum of 255
e.g. 0.0 for 0, 0.5 for 127, 1.0 for 255
CaptureInkWidthGet/SetStringDecimal width of 'ink' used to render the signature image in mm. Default = 0.7mm, min 0.1mm, max 2.0mm.
NB: scales with signature and varies with pressure, when pressure data is available.
CaptureExtentXGet/SetDWORDSets width of the capture area in pixels. Requires CaptureExtentY to also be set.
If not set, the size of the capture area is determined by the size of the digitizer.
CaptureExtentYGet/SetDWORDSets height of the capture area in pixels. Requires CaptureExtentX to also be set.
If not set, the size of the capture area is determined by the size of the digitizer.
ButtonLocationGet/SetStringLocation of buttons in the capture window: 0 - Outside, 1 - Inside, 2 - Hidden.
LicenceStringGetStringLicense name extracted from license string (if set).
stuPortGet/SetStringCOM port for serial interface e.g., "COM6".
stuBaudRateGet/SetDWORDSerial line speed e.g., 128000.
The following values are for use with the STU-540 device. For details, see: Upload signature screen to STU-540
stuDisableSerialEncryptionGetDWORDImages uploaded to the STU will be unencrypted. 0 - inactive, 1 - active.
stuEnableSerialFastClearGetDWORDReduced delay when the Clear button is pressed. 0 - inactive, 1 - active.
stuSignatureModeGet/SetDWORDSelect Signature mode: 0 - default, 1 - signature, 2 - non-signature.
stuSigModeScreenNumGet/SetDWORDSelect Signature screen number (1..3).
stuSigModeWhyGet/SetStringWhy string.
stuSigModeWhoGet/SetStringWho string.
stuSigModeWhenGet/SetStringWhen string.
stuSigModeOKGet/SetStringText for OK button e.g., dc.SetProperty("stuSigModeOK", "OK (screen 1)").
stuSigModeClearGet/SetStringText for Clear button.
stuSigModeCancelGet/SetStringText for Cancel button.
stuSigModeFontNameGet/SetStringFont name e.g., "Courier New".
stuSigModeFontSizeGet/SetDWORDFont size e.g., 10.
stuSigModeConfigSetStringSignature Mode configuration filename e.g., dc.SetProperty("stuSigModeConfig", "c:\config\STU-screens.config,1").