Commit 9093a999 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

generate barcode image for code128 barcode, i.e. without input data in text.

parent 99ddd946
......@@ -18,6 +18,7 @@ def generateBarcodeImage(self, barcode_type, data):
elif barcode_type == 'code128':
from hubarcode.code128 import Code128Encoder
encoder = Code128Encoder(data)
encoder.text = '' # get barcode image only
output = encoder.get_imagedata()
elif barcode_type == 'qrcode':
import qrcode
......
1021
\ No newline at end of file
1022
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment