Skip to main content

Generating QR codes

You can generate QR codes in your document using the 2D Barcode → QR Code component.

The QR code content is defined using a data expression.


How it works​

  • QR codes encode text data
  • You provide the content using an expression
  • The QR code is generated during document rendering

Example:

CONCAT("https://example.com?id=", orderId)

Important concept​

Eledo does not interpret QR code types directly.

Instead, it encodes the provided text.
Different QR code “types” are simply different text formats.


Common QR code formats​

You can generate various types of QR codes by formatting the encoded text correctly.


https://example.com

Text​

Welcome to our store!

Phone number​

tel:+1234567890

Email​

mailto:support@example.com?subject=Feedback&body=Hello

SMS​

smsto:+1234567890:Hello, I need assistance.

Wi-Fi credentials​

WIFI:T:WPA;S:MyNetwork;P:password123;;

Contact (vCard)​

BEGIN:VCARD
VERSION:3.0
N:Doe;John;;;
TEL:+1234567890
EMAIL:john.doe@example.com
END:VCARD

Location​

geo:37.7749,-122.4194

Calendar event​

BEGIN:VEVENT
SUMMARY:Team Meeting
DTSTART:20241225T100000
DTEND:20241225T110000
LOCATION:Conference Room
END:VEVENT

Payment or structured data​

upi://pay?pa=example@upi&pn=John%20Doe&am=100.00&cu=INR

When to use QR codes​

Use QR codes when you need to:

  • link to external systems
  • encode structured data
  • provide quick access to information


Was this article helpful?

Yes
No