mirror of
https://github.com/brmlab/misc.git
synced 2025-06-07 09:24:02 +02:00
barcodes.py: Adjust for brmlab printer
This commit is contained in:
parent
ca1c4f3277
commit
c35a9a686a
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ try:
|
|||
data = raw_input()
|
||||
elem = Popen(('zint','--directsvg','-d', data), stdout = PIPE).communicate()[0].split('\n')
|
||||
elem = elem[8:-2]
|
||||
elem[0] = elem[0].replace('id="barcode"', 'transform="matrix(%f,0,0,%f,%f,%f)"' % (scalex, scaley, 42+i*150 , 14+j*74.3) )
|
||||
elem[0] = elem[0].replace('id="barcode"', 'transform="matrix(%f,0,0,%f,%f,%f)"' % (scalex, scaley, 22+i*150 , 14+j*74.3) )
|
||||
if args.brmlabel:
|
||||
elem[23] = 'brm - ' + elem[23].strip() + ' - lab'
|
||||
f.write('\n'.join(elem))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue