QR Code Generator |
[This is preliminary documentation and is subject to change.]
QR code Generation in TOPICA
This document describes how to generate QR codes in Topica and how to integrate them into new and existing Topica applications.
The QR code generator operates on the principles of REST. A Get request is issued to a specific URL, with a set of QueryString parameters, and a QR code is generated from the QueryString parameters and returned as an Image response type. The Image response can be used directly in an HTML Image tag or it can be saved to disk by the caller.
The URL to reference for generating a QR code in the following Minimal qualified URL: Fully qualified URL:
QueryString parameter | Valid values | Required? | Default | Description |
---|---|---|---|---|
value | Any text. | true | N/A | This is the value that will be converted to QR code representation. |
pixels | A numeric value is applicable. | true | N/A | The size of the QR code. |
dark | A hexadecimal value number for the dark color (without '#') | false | 000000 | This parameter controls the color of the dark part. |
light | A hexadecimal value number for the light color (without '#') | false | ffffff | This parameter controls the color of the light part. |
quiet | Boolean | false | false | This parameter controls the frame of the QC Code. |
Examples using JavaScript popup, html page, aspx page and IFrame.
Examples using report element.
The QR code generator operates on the principles of REST. A Get request is issued to a specific URL, with a set of QueryString parameters, and a QR code is generated from the QueryString parameters and returned as an Image response type. The Image response can be used directly in an HTML Image tag or it can be saved to disk by the caller.
This example shows how to use the QR code feature on an aspx page. QueryString parameters could be appended to the URL from the code-behind file.
This example shows how to use the QR code feature using a standard HTML image tag.