SwissQrBill.QrCode.QrCode (SwissQrBill v0.2.0)

Copy Markdown View Source

QR code generation for Swiss QR bills. Uses the qr_code library with Medium error correction.

Summary

Functions

Returns the raw QR matrix for rendering in PDF. Fails with an error tuple if the payload exceeds QR version 25 (the maximum permitted by the Swiss standard).

Functions

to_matrix(data)

@spec to_matrix(String.t()) :: {:ok, [[0 | 1]]} | {:error, String.t()}

Returns the raw QR matrix for rendering in PDF. Fails with an error tuple if the payload exceeds QR version 25 (the maximum permitted by the Swiss standard).