Fix QR code dimensions (height and width) in ZPL

I am printing a QR code on a small label.

The amount of data in the QR code is variable. A printer (e.g. Zebra GK420d) changes the size / size of the QR image depending on the amount of embedded data.

ZPL example:

^FO38,2400 ^BQN,2,10 ^FDMA,http://ghospitals/gp/index.php/patient/120704^FS 

QR code size needs to be fixed. Increasing data should increase density, not size!

How can I limit / determine the size of a printed QR code?

Thanks for your help.

+4
source share
1 answer

I have been experimenting with this for some time. I don’t think you can fix the size when you use the zpl II script, instead generate an image with a QR, scaling it to this size.

If you will not use QR as an image, try manipulating the 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 

using

 ^BQN,2,9 

or less.

+6
source

Source: https://habr.com/ru/post/1500788/


All Articles