my $barcode = $pdf->barcode('qr', $value, %options);
The following standard barcode options are supported, as described in "barcode" in PDF::API2:
• bar_width (default: 1; unit is points)
• bar_height (default: bar width)
• quiet_zone (default: 4x bar width)
• color (default: black)
The following options are specific to QR codes:
• error_correction (default: L)
The QR Code Error Correction Level. Higher levels of error correction generate larger bar codes but
remain scannable when parts of the code are damaged or obscured.
In increasing order of error correction, the possible values are:
• L (7%)
• M (15%)
• Q (25%)
• H (30%)
• version (default: 0)
If you need a specific version of QR Code, enter it here. Otherwise, the minimum version will be
used that can support the encoded value.
• mode (default: 8-bit)
You can generate smaller QR codes if you're using a restricted character set:
• 8-bit (typically the ISO-8859-1 character set)
• kanji
• alphanumeric (digits, uppercase letters, space, or "$ % * + - . / :")
• numeric (digits)
• case_sensitive (default: 1)
Whether 8-bit characters should be treated in a case-sensitive manner.
perl v5.38.2 2024-05-22 PDF::API2::Res...BarCode::qrcode(3pm)