zpl
zpl copied to clipboard
Python ZPL2 Library
the \ line break in barcode_zpl assignment prevents the entire string from being formatted.
I hope that I don't misunderstand anything, but I was expecting functions like draw_ellipse() draw_box() to accept mm units, but the conversion is missing in these. So I think this:...
Hello, thanks for this library. I added ZPL code `^POI` for *label orientation*. This rotates the label format by 180 degrees such that the label appears to be printed upside...
is there an option to set the width of the barcode
This is a proposed solution for https://github.com/cod3monk/zpl/issues/39 "https://github.com/cod3monk/zpl/issues/39" I added Exception message handling and type checking for "going both ways" FilePrinter.send_job() checks for a zpl.label.Label class object and if so...
I followed the advice to use the barcode() function. In my code using the barcode function makes no difference. The first the characters are cut off. def create_zebra_qr_code_special(code_to_print) : #...
Can you apply the possibility for Hex characters? (^FH...)
``` import zpl l = zpl.Label(20,32) l.origin(8,2) l.barcode('Q', 'https://github.com/cod3monk/zpl/', magnification=7) l.endorigin() zp=zpl.TCPPrinter("") zp.send_job(l) ``` `zp.send_job(l)` causes exception: ``` Traceback (most recent call last): File "", line 1, in File "\Python\3.11.0\Lib\site-packages\zpl\printer.py",...
Following deprecation warning is shown: ``` DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead. image = image.resize((int(width*self.dpmm), int(height*self.dpmm)), PIL.Image.NEAREST) ``` My...
The PW value should be set in the constructor as (width * dpmm - 1) because it ranges from 0 to width * dpmm - 1 in the ZPL parser...