OptionalcheckWhether to print or calculate a check digit when supported (defaults to false).
Optionalcode128Code 128 mode flag for ^BC (only for Code128 type)
OptionaldataDataMatrix: quality setting (1-99999, default 200).
OptionalheightOptionalhexOptional ^FH hex indicator for embedding hex escapes inside the field data.
OptionallineWhether to print the human-readable interpretation line (defaults to true for linear barcodes).
OptionallineWhether to print the interpretation line above the barcode (defaults to false; Code128 mode U defaults to true).
OptionalmoduleOptionalpdf417PDF417: number of columns (1-30, default 3).
Optionalpdf417PDF417: number of rows (3-90, default 3).
Optionalpdf417PDF417: security level (0-8, default 0 = auto).
Optionalpdf417PDF417: truncate right row indicator to reduce width (default false).
OptionalqrQR Code error correction level (only for QRCode type)
OptionalqrQR Code mask pattern 0-7 (only for QRCode type)
OptionalqrQR Code model 1 or 2 (only for QRCode type)
OptionalratioOptionalrotateOptionalwidth
Options for centered barcode fields (convenience wrapper around
barcode()).Remarks
This interface defines the configuration options for centering a barcode horizontally:
y: Vertical position for the barcode in current units.width: Optional expected rendered barcode width in current units; used to compute centeredx. When omitted,barcodeCentered()auto-estimates width for supported barcode types.barcode().barcodeCentered()requires a print width (^PW) to be present in the label format.