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

    Function generateBarcode

    • Encodes value and renders it as a PNG, as configured by options (size, colours, text, fit).

      Parameters

      Returns Uint8Array

      The PNG file bytes.

      If moduleSize is not a positive safe integer, quietZone is not a non-negative safe integer, fitWidth or fitHeight is not a positive finite number, or pdf417EcLevel or pdf417Columns is not a finite number, or a foreground or background channel is not an integer 0-255.

      If type is unknown, or the encoder rejects value (see the encode* functions).