1

I am using barcodes to automate data entry, so I'd like to add non-printing characters to the barcode. The parse option should be able to do it, but as there's minimal error generation between the Treepoem frontend and BWIPP, it's been challenging to understand what I'm missing.

image = treepoem.generate_barcode(barcode_type="datamatrix",
                                  data="hello^TABworld",
                                  options= {"parse": True})
image.convert("1").save("output_barcode.png")

I'm getting this barcode Datamatrix with data: hello^TABworld, instead of this Datamatrix with data: hello    world

Jeremy
  • 11
  • 2
  • 1
    What version of BWIPP is being used by treepoem? BWIPP introduced the mnemonic control character names in release 2022-07-01. – Mark Warren Oct 28 '22 at 02:41
  • 1
    I've found a workaround. Just encode the escape character into the text directly. data="hello/tworld" – Jeremy Oct 28 '22 at 17:30

0 Answers0