Added in Version 1.0.0

BarcodeParameter

Barcode setting parameters

Constructor

BarcodeParameter(content: String, symbology: BarcodeSymbology)

Initialize object

Property

content

Barcode data

symbology

Barcode symbol

printHri

Print a string under the barcode bar

barDots

Number of barcode bar dots

barRatioLevel

Ratio level of the barcode bar

height

Barcode bar height (mm)

Method

setPrintHri(printHri: Boolean)

Set to print a string under the barcode bar

setBarDots(barDots: Int)

Set the number of barcode bar dots

setBarRatioLevel(barRatioLevel: BarcodeBarRatioLevel)

Set the ratio level of the barcode bar

setHeight(height: Double)

Set the height of the barcode bar (mm)

Note

  • A line break is automatically added after the barcode is printed.

  • If a barcode that does not fit in the printing area is specified, the printing data for the barcode is not generated. (Except for TSP100II and TSP100III series)

  • To specify a control code lower than 0x1F in contents, specify the coding as \\x[0-9A-Fa-f]{1,2}. (Example: For 0x00, specify \\x00)

  • barRatioLevel is valid for Code39, NW7, and Itf.

  • For Code128, control codes such as start codes or code conversions are unnecessary because they are specified automatically. To specify a control code such as FNC1, specify the coding as \\(control code). (Example: For FNC1, specify \\(FNC1))