Warning Older Docs! - You are viewing documentation for a previous released version of RhoMobile Suite.

SignatureImageWidth Decoder Setting

The SignatureImageWidth Decoder Setting is used to set the image width property of the signature decoder.

Syntax

signatureImageWidth (Decoder Setting) <META> Syntax

<META HTTP-Equiv="scanner" content="signatureImageWidth:[parameter]">

signatureImageWidth JavaScript Object Syntax:
By default the JavaScript Object 'scanner' will exist on the current page and can be used to interact directly with the signatureImageWidth.
To Set signatureImageWidth parameters via JavaScript use the following syntax: scanner.Parameter = Value;

e.g. scanner.signatureImageWidth = Value;
SignatureImageWidth Ruby Object Syntax:
By default the Ruby Object 'Scanner' will exist on the current page and can be used to interact directly with the SignatureImageWidth.
To Set SignatureImageWidth parameters via Ruby use the following syntax: Scanner.Parameter = Value

e.g. Scanner.signatureImageWidth = Value

Parameters

Items listed in this section indicate parameters, or attributes which can be set.

Name Possible Values Description Default Value
signatureImageWidth:[Value] number The width of the desired output image. The barcode will be returned as a Data URI object with a jpeg mime type, you should specify the barcodeDataFormat and dataBufferSize parameters accordingly. Device specific

Requirements

RhoElements Version 2.1 or above
Supported Devices All supported devices except: Enterprise Tablet.
Minimum Requirements Scanner and device that supports the Signature decoder.
Persistence Transient - Decoder settings are only guaranteed to persist until the Scanner is disabled

HTML/JavaScript Examples

The following example enables the scanner to specify the signatureImageWidth parameter

<META HTTP-Equiv="scanner" Content="signature:enabled">
<META HTTP-Equiv="scanner" Content="signatureImageWidth:500">
<META HTTP-Equiv="scanner" Content="barcodeDataFormat:binary;dataBufferSize:5000">
<META HTTP-Equiv="scanner" Content="enabled">
Back to Top