QR Code Script Methods

The following script methods are specific to this barcode symbology. Additionally, you can use the Common Script Methods for Barcodes.

Tip: If using these script methods in a business rule, select the Rhino script engine.

Tip: Script methods with names beginning with get or is retrieve the current value for a property. Script methods with names beginning with set configure a value for the property.

Methods Description Values

getCellWidth()

setCellWidth(int)

The X-dimension or height and width of one cell (module) in the barcode. The range of values available depends on the Document DPI of the label template. For example, a label template with a Document DPI of 203 has Line X-Dim values in increments of 4.9 mil (1000 mil / 203 dpi). Thousandths of an inch (mil)

getDataEncodingMode()

setDataEncodingMode(String)

The type of information encoded in the symbol.
  • Byte: 8-bit bytes (binary).
  • Alpha: Alphanumeric characters and the symbols $, %, *, +, -, /, :, period, comma, and space.
  • Numeric: Numeric digits

getErrorCorrection()

setErrorCorrection(String)

The level of error checking and correction employed in the symbol.

  • L: Approximately 7% error correction.
  • M: Approximately 15% error correction.
  • Q: Approximately 25% error correction.
  • H: Approximately 30% error correction.

For more information about encoding QR Codes, see the QR Code entry listed in External Links.