@schie/fluent-zpl - v0.13.0
    Preparing search index...

    Interface BarcodeCenteredOpts

    Options for centered barcode fields (convenience wrapper around barcode()).

    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 centered x. When omitted, barcodeCentered() auto-estimates width for supported barcode types.
    • all other barcode options are forwarded to barcode().

    barcodeCentered() requires a print width (^PW) to be present in the label format.

    interface BarcodeCenteredOpts {
        checkDigit?: boolean;
        code128Mode?: Code128Mode;
        data: string;
        dataMatrixQuality?: number;
        height?: number;
        hexIndicator?: string;
        line?: boolean;
        lineAbove?: boolean;
        module?: number;
        pdf417Columns?: number;
        pdf417Rows?: number;
        pdf417SecurityLevel?: number;
        pdf417Truncate?: boolean;
        qrErrorCorrection?: QRErrorCorrection;
        qrMask?: number;
        qrModel?: 1 | 2;
        ratio?: number;
        rotate?: Orientation;
        type: Barcode;
        width?: number;
        y: number;
    }

    Hierarchy

    Index

    Properties

    checkDigit?: boolean

    Whether to print or calculate a check digit when supported (defaults to false).

    code128Mode?: Code128Mode

    Code 128 mode flag for ^BC (only for Code128 type)

    data: string
    dataMatrixQuality?: number

    DataMatrix: quality setting (1-99999, default 200).

    height?: number
    hexIndicator?: string

    Optional ^FH hex indicator for embedding hex escapes inside the field data.

    line?: boolean

    Whether to print the human-readable interpretation line (defaults to true for linear barcodes).

    lineAbove?: boolean

    Whether to print the interpretation line above the barcode (defaults to false; Code128 mode U defaults to true).

    module?: number
    pdf417Columns?: number

    PDF417: number of columns (1-30, default 3).

    pdf417Rows?: number

    PDF417: number of rows (3-90, default 3).

    pdf417SecurityLevel?: number

    PDF417: security level (0-8, default 0 = auto).

    pdf417Truncate?: boolean

    PDF417: truncate right row indicator to reduce width (default false).

    qrErrorCorrection?: QRErrorCorrection

    QR Code error correction level (only for QRCode type)

    qrMask?: number

    QR Code mask pattern 0-7 (only for QRCode type)

    qrModel?: 1 | 2

    QR Code model 1 or 2 (only for QRCode type)

    ratio?: number
    rotate?: Orientation
    type: Barcode
    width?: number
    y: number