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

    Function encodeDataMatrix

    • Experimental

      Encodes a Data Matrix (ECC 200) symbol.

      Module placement is not ISO/IEC 16022 conformant and symbols may not scan.

      Parameters

      • data: string

        Text to encode. Latin-1 text is encoded as is; any other text is encoded as UTF-8 behind an ECI marker.

      Returns BarcodeMatrix

      The symbol matrix of the smallest square size that fits (10x10 to 48x48), without quiet zone.

      Data Matrix: data too long if the data exceeds the 48x48 capacity.