moduleWidth

Specifies different aspects of a barcode depending on the class of barcodes being used.

For one-dimensional software barcodes the parser sets the width of the narrow bars to the value of this property. The width of the wide bars is derived from that of the narrow bars. The allowable range of widths varies from one barcode format to another. The form design must not specify a value outside the allowable range. If moduleWidth is supplied, then the dataLength property is ignored. Conversely moduleWidth has no default, so when the dataLength property is not supplied, then moduleWidth must be supplied.

For 2D hardware barcodes, moduleWidth either has no effect or has the same effect as for a software barcode, depending upon the printer and barcode. The allowable range for the value varies between printers and between barcodes.

For 2D barcodes the value of this property determines the module width. A module is a set of bars encoding one symbol. Usually a symbol corresponds to a character of supplied data. The allowable range of widths varies from one barcode format to another. The form design must not specify a value outside the allowable range.

Syntax

Reference_Syntax.moduleWidth = "0.25mm | measurement"

Values

Type

Values

String

  • 0.25mm (default)

  • Any valid measurement.

Applies to

Model

Object

Form Model

barcode

Version

XFA 2.1

Examples

JavaScript

Code11BarCode1.resolveNode("ui.#barcode").moduleWidth = "25mm";

FormCalc

Code11BarCode1.ui.#barcode.moduleHeight = "25mm"

// Ethnio survey code removed