02.12.2014 Views

Signature Components API

Signature Components API

Signature Components API

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Signature</strong> <strong>Components</strong> <strong>API</strong><br />

3.3.2.2 CheckHostDocument2<br />

Recalculates the document hash and compares it with a value stored within the HTML document<br />

itself, eg:<br />

<br />

The hash is inserted by a Wacom HTML converter component (part of the Advanced SDK) and is used<br />

to check that documents are not changed prior to signing.<br />

SignedData CheckHostDocument2()<br />

Parameters: none<br />

Return Value: SignedData<br />

DataGood<br />

The document has not been changed since signing<br />

DataNoHash<br />

<strong>Signature</strong> has not been captured, or the hash was not calculated<br />

DataBadType<br />

<strong>Signature</strong> was captured using a different type of hash<br />

DataBadHash<br />

The document hash has changed since signing<br />

DataError<br />

An error occurred while calculating the hash<br />

3.3.2.3 InsertMarkup<br />

Inserts text into an HTML element. Only plain text will be allowed. It will be assigned to the innerText<br />

property of the element. The HTML element must be empty (contain no text or child elements) and<br />

the control must not contain a captured signature.<br />

Application Notes:<br />

If a signature with associated markup is re-captured, markup will be removed from the document<br />

and lost. In order to re-capture with markup, first clear the signature and re-insert markup.<br />

Attempting to insert markup into an element that does not exist or is not empty, or calling the<br />

method on a control that contains a signature will result in an exception being thrown in javascript.<br />

Void InsertMarkup( Id, Text )<br />

Parameters:<br />

Id<br />

Text<br />

Return Value: none<br />

String specifying the id of an HTML element in which to insert text.<br />

Text to insert.<br />

3.3.3 Properties<br />

Property Type SigCtlXHTML Property Description<br />

Printer PrintObj Creates and returns a PrintObj object (part of the Advanced SDK).<br />

Deprecated.<br />

(Read-only)<br />

3.3.4 Events<br />

As SigCtl<br />

Page 26 of 75

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!