How to generate EAN13 barcode that can satisfy checksum digit check?

后端 未结 2 601
慢半拍i
慢半拍i 2021-01-26 10:14

I am using zxing to generate barcodes. I want to store incremental number in it and I want to avoid checksum errors. How can I avoid it? What\'s the correct approach?

2条回答
  •  孤独总比滥情好
    2021-01-26 11:03

    you can use the algorithm on http://en.wikipedia.org/wiki/EAN-13 to base your code off of.

    This should give you a good approach to creating it and using it at the same time

    http://www.codeproject.com/Articles/156402/Android-Generating-an-EAN-Barcode

    I would of made a comment but I dont have enough rep.

提交回复
热议问题