toSvg
Renders the symbol as an SVG document.
Coordinates are in modules; moduleSize only sets the width/height attributes, in unit. For print, pass the X-dimension in millimetres with unit = "mm" (e.g. moduleSize = 0.495).
Parameters
bar height in modules.
print the human readable interpretation under the bars.
text height in modules (8 modules is 3.96 mm at X = 0.495 mm; GS1 asks for at least 3 mm).
background colour, or null for a transparent background.
Renders the symbol as an SVG document.
Coordinates are in modules; moduleSize only sets the width/height attributes, in unit. For print, pass the X-dimension in millimetres with unit = "mm". The human readable interpretation is not included: place DataMatrixSymbol.humanReadable near the symbol.
Parameters
background colour, or null for a transparent background.
Renders the symbol as an SVG document.
Coordinates are in modules; moduleSize only sets the width/height attributes, in unit. For print, pass the X-dimension in millimetres with unit = "mm". The text is not included: place QrCodeSymbol.humanReadable or QrCodeSymbol.text near the symbol if needed.
Parameters
background colour, or null for a transparent background.