[reportlab-users] upc-a barcodes

Steve Romanow slestak989 at gmail.com
Wed Sep 8 09:37:16 EDT 2010


On 9/8/2010 5:11 AM, Peter wrote:

> On Tue, Sep 7, 2010 at 9:51 PM, Steve Romanow<slestak989 at gmail.com> wrote:

>> I understand that upc-a and its ilk are related to EAN-13, however, it does

>> not seem trivial to get UPC-12 barcodes out of ean.py.

>>

>> Between upc-12, ucc's, and ean's it is dangerous to use the length of

>> the string as an indicator as to how it should be encoded. Is this

>> already sorted out in teh community and I am just behind?

> It has been a while since I worked on this, but aren't 12 digit UPC-12

> barcodes the same thing as a 13 digit EAN barcode with a leading

> zero added?

>

> In a sense, you *have* to look at the length to tell them apart ;)

>


I think my difficulty with this stems from storage of UPC values with
the check digit already computed. Even if I took off the last char, the
barcode was still shifted one position when using ean.py. I have moved
on to another task, but will revisit this in the future.


More information about the reportlab-users mailing list