Type alias SymbologySpec

SymbologySpec: {
    checksumMode?: number;
    maxLen?: number;
    minLen?: number;
    name: SymbologyName;
    qz?: number;
}

For variable-length symbologies, min/max length can be specified in addition to the symbology.

Type declaration

  • Optional checksumMode?: number

    The mode to use for symbologies which support an optional checksum mechanism.

    Setting the mode to 0 or leaving it unset disables processing of the checksum. 1 will expect the check digit to be present, validate the barcode data against it, and strip it from the transmitted data. 2 will validate and also transmit the check digit along with the data portion.

    Remarks

    Setting this option to 1 or 2 requires that all barcodes of this symbology include a check digit. Barcodes that lack the check digit will not be readable anymore.

    Default Value

    0
    
  • Optional maxLen?: number

    The maximum length of the barcode, only has an effect for variable-length symbologies.

  • Optional minLen?: number

    The minimum length of the barcode, only has an effect for variable-length symbologies.

  • name: SymbologyName

    The name of the symbology.

  • Optional qz?: number

    The minimum length of the leading and trailing quiet zone for this symbology, expressed as multiples of X.

    Remarks

    There is rarely a need to change the default.

Generated using TypeDoc