QRCoder

QRCoder (ODC)

Stable version 1.2.0 (Compatible with ODC)
Uploaded on 5 Feb by valantic LCS
QRCoder

QRCoder (ODC)

Documentation
1.2.0

Use this external logic together with the QRCoder Payload library.


1. Generate a payload format for your QR code


Use one of the available utility actions from the QRCoder Payload library to create the payload for your QR code.


2. Generate the image QR code


Use the result of the generated payload as input parameter to the GeneratePngCode action from this module.


GeneratePngCode action


This external logic library currently features a single action GeneratePngCode with the following input parameters

  • payload - The payload of the QR code. This can be any arbitrary text, or a specified format like a VCard or a WiFi connection. To create specific payloads you can download and use the QRCoder Payload library from the forge.
  • darkColorHex - Color hex code for dark patterns of code. Defaults to #000000
  • lightColorHex - Color hex code of light patterns of code. Default to #FFFFFF
  • eccLevel - Error correction level. Can have one of the following values: L - 7% may be lost before recovery is not possible, M - 15% may be lost before recovery is possible, Q - 25% may be lost before recovery, H - 30% may be lost before recovery. Defaults to M.
  • pixelsPerModule - Pixels per module. The pixel size each b/w module is drawn. Defaults to 20.
  • drawQuietZone - Draw Quite Zones. Defaults to true.

returns

  • result - The QR code PNG image as binary data.

The source code for this library is available here stefan-d-p/odc-qrcoder-library: OutSystems Developer Cloud External Logic Library to generate QR codes (github.com)


Notes


If you have used my QrCoder Forge component for OutSystems 11 you will notice that there is no support for SVG, PDF and ArtQR anymore. This is because for this features QrCoder depends on System.Drawing which is not available in .net 6. Although there is a very good fork for QrCoder qrcode-imagesharp that implements SixLabs ImageSharp library as a replacement for System.Drawing I decided to not use it because of the split license of imagesharp.