modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Function encodeCode128

    • Encodes a Code 128 symbol from ASCII characters 32-127. A run of four or more digits switches to Code C (an odd-length run starts with one Code B digit); all other characters use Code B. All-digit data of even length is one Code C symbol. The check character is added.

      Parameters

      • data: string

        Text to encode; must not be empty.

      Returns BarcodeMatrix

      The symbol matrix (60 rows), without quiet zone.

      If data is empty or contains a character outside ASCII 32-127.