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)