d2of5MaxLength Meta Tag

PocketBrowser 3.x API

The d2of5MaxLength Meta Tag is an action tag used to set the d2of5 MaxLength property. Setting this property will help prevent partial decoding of barcodes.

d2of5MaxLength (META Tag) Syntax
<META HTTP-Equiv="scanner" content="d2of5maxlength:[parameter>

ParametersW Toggle Parameters

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

Name Possible Values Description
Default Value
d2of5maxlength:[Value] Numeric value (0 - 55) Numeric value setting the maximum number of characters for the d2of5 structure (0 - 55). Device specific
Copy parameters template to clipboard: Copy META Tag template to clipboard META Tags Copy Javascript template to clipboard Javascript

Examples Toggle Examples

The following example enables the scanner to read only d2of5 labels with the MaxLength property set to 30:

<META HTTP-Equiv="scanner" Content="d2of5:enabled">
<META HTTP-Equiv="scanner" Content="d2of5maxlength:30">
<META HTTP-Equiv="scanner" Content="enabled">
Copy example to clipboard Copy example to clipboard

Above example can also be written as shown below:

<META HTTP-Equiv="scanner" Content="d2of5:enabled;d2of5maxlength:30;enabled">
Copy example to clipboard Copy example to clipboard


<META HTTP-Equiv="scanner-d2of5" Content="enabled">
<META HTTP-Equiv="scanner-d2of5maxlength" Content="30">
<META HTTP-Equiv="scanner-enabled" Content="SCN1">
Copy example to clipboard Copy example to clipboard

Info Toggle Additional Information

Supported Platforms Windows CE, Windows Mobile, Windows Mobile SE
Persistence This tag is persistent.
Min. Requirements Scanner or Imager module and device supports d2of5.