Browse Source

barcode controller: Remove quiescence zone left and right

When creating reports with barcode labels, there is simply no space
for excessive quiescence zones.  Let's give control of layout to the
report template, not to the barcode renderer.
master
Harald Welte 5 years ago
parent
commit
d07b59d4ba
  1. 2
      addons/report/controllers/main.py

2
addons/report/controllers/main.py

@ -89,7 +89,7 @@ class ReportController(Controller):
width, height, humanreadable = int(width), int(height), bool(humanreadable)
barcode = createBarcodeDrawing(
type, value=value, format='png', width=width, height=height,
humanReadable = humanreadable
humanReadable = humanreadable, quiet=0
)
barcode = barcode.asString('png')
except (ValueError, AttributeError):

Loading…
Cancel
Save