zxing-wasm
    Preparing search index...

    Interface WriterOptions

    Writer options for writing barcodes.

    interface WriterOptions {
        ecLevel?: EcLevel;
        forceSquareDataMatrix?: boolean;
        format?: WriteInputBarcodeFormat;
        readerInit?: boolean;
        rotate?: number;
        scale?: number;
        sizeHint?: number;
        withHRT?: boolean;
        withQuietZones?: boolean;
    }

    Hierarchy

    • Partial<Omit<ZXingWriterOptions, "format">>
      • WriterOptions
    Index

    Properties

    ecLevel?: EcLevel

    The error correction level of the symbol (empty string if not applicable)

    ""

    forceSquareDataMatrix?: boolean

    Force the Data Matrix to be square.

    false

    The format of the barcode to write.

    Supported values are: "Aztec", "Codabar", "Code39", "Code93", "Code128", "DataBar", "DataBarExpanded", "DataBarLimited", "DataMatrix", "DXFilmEdge", "EAN-8", "EAN-13", "ITF", "MaxiCode", "MicroQRCode", "PDF417", "QRCode", "rMQRCode", "UPC-A", "UPC-E"

    "QRCode"

    readerInit?: boolean

    Set if this is the reader initialisation / programming symbol.

    false

    rotate?: number

    The rotation of the barcode in degrees. Valid values are 0, 90, 180 and 270.

    0

    scale?: number

    The scale of the barcode. 0 means unset.

    0

    sizeHint?: number

    A size hint to determine the scale of the barcode. 0 means unset.

    This only takes effect if scale is unset.

    0

    withHRT?: boolean

    Include human readable text (HRT) in the barcode.

    false

    withQuietZones?: boolean

    Add compliant quiet zones to the barcode.

    EAN-13, ITF, UPC-A and UPC-E have compliant quiet zones added by default.

    true