adamchainz / treepoem

Barcode rendering for Python supporting QRcode, Aztec, PDF417, I25, Code128, Code39 and many more types.
MIT License
131 stars 26 forks source link

includetext doesn't work on sscc generation #159

Closed adsad213 closed 5 years ago

adsad213 commented 5 years ago

for the options field, we must pass a dictionary

image = treepoem.generate_barcode(barcode_type='sscc18',data="(00)00614141123456789",options={"height":"1"})

this works, however, I can't put options={"includetext"}, since it needs either an element and True, or "" don't seem to be working.

any clue?

dlenski commented 5 years ago

however, I can't put options={"includetext"}, since it needs either an element and True, or "" don't seem to be working

I don't understand what you're saying here. Did you actually try True as the dictionary value? It works.

image

adamchainz commented 5 years ago

Thanks for the demo @dlenski