wideNarrowRatio

Specifies a ratio of wide bar to narrow bar in supported barcodes.

The allowable range of ratios varies between barcode formats and also, for hardware barcodes, the output device. The template must not specify a value outside the allowable range. The parser ignores this property for barcode formats which do not allow a variable ratio of wide to narrow bar widths.

Syntax

Reference_Syntax.wideNarrowRatio = "3:1 | wide[:narrow]"

Values

Type

Values

String

  • 3:1 (default)

  • wide[:narrow]

Any valid ratio that uses the syntax:

  • wide[:narrow]

where wide is a positive number representing the numerator of the ratio, and narrow is an optional positive number representing the denominator of the ratio.

If narrow is not supplied it defaults to 1.

Applies to

Model

Object

Form Model

barcode

Version

XFA 2.1

Examples

JavaScript

Barcode1.resolveNode("ui.#barcode").wideNarrowRatio = "5:1";

FormCalc

Barcode1.ui.#barcode.wideNarrowRatio = "5:1"

// Ethnio survey code removed