DataMatrixNode

data class DataMatrixNode(val data: String, val size: Dp? = null, val color: PdfColor = PdfColor.Black, val background: PdfColor? = PdfColor.White) : PdfNode

A Data Matrix (ECC 200) 2D symbol rendered as crisp vector squares.

The module matrix is computed in common code by com.conamobile.pdfkmp.barcode.DataMatrixEncoder; the smallest square symbol (10×10 … 52×52) that fits data is chosen automatically. ASCII encodation only — bytes above 127 are rejected at build time.

Like QR, Data Matrix expects a quiet zone (1 module here) — place it in a padded container or against the page margin.

Constructors

Link copied to clipboard
constructor(data: String, size: Dp? = null, color: PdfColor = PdfColor.Black, background: PdfColor? = PdfColor.White)

Properties

Link copied to clipboard

fill behind the symbol; null for transparent.

Link copied to clipboard

module (dark square) colour.

Link copied to clipboard

payload; ASCII bytes 0..127.

Link copied to clipboard
val size: Dp? = null

rendered edge length; null falls back to 100 points.