A QR code is a two-dimensional barcode that can store a lot of information, including text, URLs, phone numbers, email addresses, and more. When you scan a QR code using your smartphone’s camera, or another device, the code is decoded and the information it contains is displayed on your screen.
By using the Insert QR Code field, you can establish a design for a QR code that is generated dynamically. The step-by-step guide below outlines how to configure this field using the DocumentsCorePack Template Designer.
Step 1: Click on the Insert Field button and select via the Insert Computed Item the QR Code.
Step 2: This Window opens where you can define the ❶ link pattern. The text will transform into a QR code.
Please note: When inserting line breaks in your code, use the syntax ‘\n’. If you need to display multiple lines, use the ‘+’ sign to concatenate them. Learn more about the syntax.
QR Code options:
❷ QR Code Level: The QR Code Level refers to the level of detail displayed in the QR code. By default, the code is set to show the minimum amount of information. However, if the user sets the value of this option to 5, with a maximum sign length of 108, then only the first 108 signs will be displayed, and any signs beyond this limit will be truncated.
❸ Error Correction: The Error Correction feature of the QR Code determines its capacity and ability to handle faults. The assigned value represents the percentage of data that can be recovered in case of errors or damage.
- Level L = 7 % of the code words/data can be recovered
- Level M = 15 % of the code words/data can be recovered
- Level Q = 25 % of the code words/data can be recovered
- Level H = 30 % of the code words/data can be recovered
❹ Max Length: The maximum length of characters allowed in the QR code is determined by the above settings and cannot be edited.
❺ Foreground Color: The Foreground Color of your QR-Code. Simply open the color palette to choose from a range of colors and fine-tune them to match your desired shade.
❻ Background Color: The Background Color of your QR-Code. (same options as for the Foreground Color).
❼ Transparent BG: If you select this option, the QR code will be transparent and adjust to the background.
Confirm with OK and now test it. If you don´t know how to test it, here is more information.
Scan it with a QR Code Scanner e.g., from your phone. Enjoy the result!
Insert a Hyperlink
Insert an Advanced string