QrCodeNode

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

A QR code symbol rendered as crisp vector squares — no rasterisation, so it scans reliably at any print size.

The matrix is computed in common code by com.conamobile.pdfkmp.barcode.QrCodeGenerator; the version (symbol size) is chosen automatically as the smallest that fits data at the requested errorCorrection level.

Leave some quiet space around the symbol (the QR spec asks for 4 modules) — placing it inside a padded container or against the page margin is usually enough.

Constructors

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

Properties

Link copied to clipboard

fill behind the symbol; null leaves it transparent so the page background shows through.

Link copied to clipboard

module (dark square) colour.

Link copied to clipboard

payload encoded in byte mode (UTF-8) — URLs, text, vCards.

Link copied to clipboard

redundancy level; higher levels survive more damage but produce denser symbols.

Link copied to clipboard
val size: Dp? = null

rendered edge length; null falls back to 100 points.