[reportlab-users] barcodes encoded with Code 128 not always optimally encoded

Josh Hieronymus josh.p.hieronymus at gmail.com
Sat Feb 23 19:09:03 EST 2013


I've noticed that when I use ReportLab to create Code 128-encoded barcodes,
the barcodes are longer than they need to be. The barcode created by
Code128("A\x00"), for example, encodes two extra symbols. Looking through
code128.py, it seems that the generated barcode for this example
unnecessarily begins in subcode B, switches to subcode A to code the symbol
for "\x00", then switches back to subcode B. If the barcode started in
subcode A, it would not need to switch.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20130223/14e12903/attachment.html>


More information about the reportlab-users mailing list