有谁知道如何删除条形码下面的文字?使用barcode.py
库生成条形码。我试图检查https://bitbucket.org/whitie/python-barcode但无法找到解决方案,应该在python中的条形码保存行中写入哪些属性:
ean = barcode.get('code39', str(row['PART']), writer=ImageWriter())
试试这个:barcode.default_writer_options ['write_text'] = False
查看代码,看起来您可以将属性'human'
(人类可读文本)设置为非空字符串以覆盖底部的文本。如果将其设置为包含单个空白' '
的字符串,则文本将为空。