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

    Interface RenderOptions

    Options for renderBarcodePNG.

    interface RenderOptions {
        background?: number[];
        foreground?: number[];
        moduleSize?: number;
        quietZone?: number;
        showText?: boolean;
        textValue?: string;
    }

    Hierarchy (View Summary)

    Index
    background?: number[]

    Background colour as [r, g, b], each channel 0-255. Missing channels default to 255, so the default colour is white.

    foreground?: number[]

    Foreground colour as [r, g, b], each channel 0-255. Missing channels default to 0, so the default colour is black.

    moduleSize?: number

    Pixels per module, a positive integer. Default 4.

    quietZone?: number

    Quiet zone around the symbol, in modules, a non-negative integer. Default 4.

    showText?: boolean

    Draw textValue as a caption below the symbol. Default false. The caption is skipped when textValue is empty.

    textValue?: string

    Caption text, drawn in a built-in 5x7 pixel font (letters are upper-cased; characters the font lacks render as a space). Default: empty, so no caption.