OptionaladdAdd human readable text (HRI) to the barcode.
OptionaladdAdd quiet zones around the barcode.
OptionalecThe error correction level of the symbol (empty string if not applicable)
OptionalforceForce the Data Matrix to be square.
OptionalformatThe format of the barcode to write.
Accepted values are derived from barcodeFormat.ts (BCF) and include:
"rMQRCode").encodeFormat before being sent to C++.w flag or non-zero zint id).OptionalinvertInvert the colors of the barcode.
OptionaloptionsComma separated list of symbology specific options and flags.
This string is parsed by the underlying C++ library to extract named parameters.
For boolean flags, include the name (e.g., "gs1").
For options with values, use a key=value format (e.g., "version=5").
Multiple options can be combined, separated by commas (e.g., "gs1,version=2").
Known keys used by CreatorOptions in the C++ backend:
eci: (string/integer) Specifies ECI designator.gs1: (boolean) Enables GS1 encoding.readerInit: (boolean) Sets reader-initialization / programming mode.stacked: (boolean) Generates a stacked version for DataBar / DataBarExpanded.forceSquare: (boolean) Only consider square symbol versions.
Supported only for the DataMatrix format.columns: (integer) Specifies number of columns (e.g., PDF417 / DataBarExpanded stacked).rows: (integer) Specifies number of rows (e.g., PDF417 / DataBarExpanded stacked).version: (integer) Specifies the version / size of most 2D symbols.dataMask: (integer) Specifies the data mask pattern for QRCode / MicroQRCode.ecLevel: (string) Error correction level / percentage where supported (e.g. L, M, Q, H, 30%).OptionalreaderSet if this is the reader initialisation / programming symbol.
OptionalrotateRotate the barcode by given degrees (0, 90, 180, 270).
OptionalscaleScale factor for rendering, i.e. the module size. Passing a negative value will choose the scale automatically to fit the size of the barcode to abs(scale) as close as possible.
OptionalsizeA size hint to determine the scale of the barcode. 0 means unset.
This only takes effect if scale is unset.
OptionalwithLegacy alias of addHRT.
Only used when addHRT is not provided.
OptionalwithLegacy alias of addQuietZones.
Only used when addQuietZones is not provided.
Writer options for writing barcodes.