I am printing a QR code on a small label.
The amount of data in the QR code is variable. The printer (e.g. Zebra GK420d) changes the size/dimensions of the QR image based on the amount of data being embedded.
Example ZPL:
^FO38,2400
^BQN,2,10
^FDMA,http://ghospitals/gp/index.php/patient/120704^FS
The QR code size should be fixed. An increase in data should increase the density not the size!
How can I restrict/define the dimensions of the printed QR code?
Thanks for your help.
Under Printers, right-click your Zebra ZD410 and select Printer preferences. Its default name should be ZDesigner ZD410-203dpi ZPL. In the Page Setup submenu, enter your label size. Note: You can change the units from millimeters to inches from the Units submenu.
The standard version is 21 x 21 modules (MicroQR has 11 x 11 modules), and as version increases, 4 modules (2 modules for MicroQR) are added on each side.
Design the QR Code using Zebra Designer From the Zebra Designer select the QR Code. Enter the required parameters. Generate the ZPL code by printing the code to a file as shown in the below figure. Select print to file and click on print.
I was experimenting with that for some time. I don't think that is possible to fix dimension when you are using zpl II
script instead generate image from QR an scale it to that dimension.
If you won't use QR as image try to manipulate with magnification factor. From doc :
^BQa,b,c,d,e
c = magnification factor
Accepted Values: 1 to 10
Default Value:
1 on 150 dpi printers
2 on 200 dpi printers
3 on 300 dpi printers
6 on 600 dpi printers
So In your case insted :
^BQN,2,10
use
^BQN,2,9
or less.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With