IntegriSign Standard Product + SDK Developer's Guide
IntegriSign Standard Product + SDK Developer's Guide
Developer’s Guide
Following are the properties, methods and events that can be used to enable
an application with IntegriSign Capture functionality.
2.1 Properties
2.1.1 HashType
Description
This property has to be set depending on the type of hashing that needs to be
carried out in the host application.
Values
Description
This property has to be set with the data that has to be authenticated. These
values are taken from the present container viz. a form or document. To
implement the custom content integrity functionality this property has to be
set before the signature capturing process. This should also be set wherever
you need to check the authenticity of the content. Typically this should be
called before using the following methods.
1 StartSign
2 OpenSign
3 VerifyDocument
Note: This property is effective only when the HashType property is set to
Custom (1).
2.2 Events
DblClick
MouseDown
MouseMove
MouseUp
2.3.1 StartSign
Description
Invokes Signature capture Dialog and user can start the “act of signing”.
Requires ePad device.
Parameters
No input parameters
Return Value
Return value is nothing.
Description
Parameters
Return Value
2.3.3 OpenSign
Description
Use this function to open and view the signature from the encrypted
Base64String on the signature component.
Parameters
Return Value
2.3.4 VerifyDocument
Description
Performs the hashing operation and returns the content integrity status. If the
HashType was set to Custom then HashData property must be set with the
original content before calling this method.
Parameters
Return Value
Description
Parameters
No input parameters.
2.3.6 ClearSign
Description
Clears the current signature and all the associated data with it.
Parameters
No input parameters.
2.3.7 SaveToFile
Description
Saves the signature as an image file (bmp, jpeg) in the set location.
Parameters
FileName – Data type String - Complete file Path where the bmp image is to
be saved.
parameter.
Note: ImageQuality should be between 0 and 100. If the parameter is not set or is set to zero
ImageQuality is taken as 80 by default. NHeight, nWidth and Imagequality are optional
parameters. If not supplied, default values are taken.
Return Value
This returns nothing.
Description
The Signer details like Name, Organization etc. can be set using this method.
This information is set so that it can be used as signer reference. This
method, if implemented, should be called before the StartSign method to
define ‘who’ is signing.
Parameters
SignLocation (In) – Data type String - Location from where the signer is
signing.
Return Value
2.3.9 GetSignerDetailsEx
Description
This method returns the Signer details stored in the signature component.
Parameters
SignLocation (In/Out) – Data type String - Location from where the signer is
signing.
Return Value
Returns values are set through the parameters in the above order.
2.3.10 SetSignPreferencesEx
Description
This function lets you specify whether the Location field is mandatory. You
can also specify whether the location field to be locked during the act of
signing.
Parameters
For all the above parameters a value of 1 means true and 0 means false.
Return Value
This function does not return any value.
2.3.11 SetSignAppearanceOptionsEx
Description
This function lets you specify the information to be displayed and printed
along with the signature.
Parameters
For all the above parameters a value of 1 means true and 0 means false.
Return Value
This function does not return any value.
Description
This function gets you the information that was displayed and printed along
with the signature.
Parameters
For all the above parameters a value of 1 means true and 0 means false.
Return Value
This function does not return any value.
2.3.13 SetSignerDetails
Description
The Signer details like Name, Organization etc. can be set using this method.
This information is set so that it can be used as signer reference. This
method, if implemented, should be called before the StartSign method to
define ‘who’ is signing.
Parameters
SignLocation (In) – Data type String - Location from where the signer is
signing.
Return Value
2.3.14 GetSignerDetails
Description
This method returns the Signer details stored in the signature component.
Parameters
SignLocation (In/Out) – Data type String - Location from where the signer is
signing.
2.3.15 SetSignAppearanceOptions
Description
This function lets you specify the information to be displayed and printed
along with the signature.
Parameters
For all the above parameters a value of 1 means true and 0 means false.
Return Value
This function does not return any value.
2.3.16 GetSignAppearanceOptions
Description
This function gets you the information that was selected to be displayed and
printed along with the signature.
Parameters
For all the above parameters a value of 1 means true and 0 means false.
Return Value
This function does not return any value.
Description
This function lets you specify whether the signature information like
Comments and Location are mandatory. You can also specify whether the
above fields are to be locked during the act of signing.
Parameters
For all the above parameters a value of 1 means true and 0 means false.
Return Value
This function does not return any value.
2.3.18 SetAffirmationText
Description
Sets the affirmation Text to be displayed on the ePad device while signing
with LCD devices.
Parameters
For all the above parameters a value of 1 means true and 0 means false.
Return Value
This function does not return any value.
Description
Parameters
FileType - Data type FILETYPE – Indicates type of file (image) storage. (BMP
= 0, JPEG =1, GIF=2)
Note: ImageQuality should be between 0 and 100. If the parameter is not set or is set to zero
ImageQuality is taken as 80 by default.
Return Value
ImageData – Data type String - Encoded (Base64) Signature image data for
storage.
2.3.20 GetImageBytes
Description
Parameters
FileType - Data type FILETYPE – Indicates type of file (image) storage. (BMP
= 0, JPEG =1)
Note: ImageQuality should be between 0 and 100. If the parameter is not set or is set to zero
ImageQuality is taken as 80 by default.
Return Value
ImageBytes – Data type ByteArray - Signature image bytes for storage.
Sign PDF is used to fill the given form fields and sign existing signature fields
in an Adobe Acrobat document (PDF) automatically using esSignPDF
component from an external application. This method takes the PDF
document path, form field data to be filled as input parameters along with the
optional output path.
3.1 Methods
3.1.1 SignPDF
Description
This function lets a PDF file to be signed from an external application. This
function can also be used to populate other form-field data in the PDF apart
from signing.
Parameters
SourcePath (In) – Data type String (Source PDF name including file path into
which signature and other field data need to be exported).
SignData (In) – Data type Variant array (SignData array needs to be a two
dimensional array. The first element providing the form field name and the
second element corresponding field data.)
SavePath (In, optional) – Data type String (An optional parameter specifying
the destination PDF file name including the file path into which signed PDF is
saved. If not specified, signed PDF is saved into the SourcePath file by
default)
Return Value
This function returns a Long value.