picqer/php-barcode-generator

Leading zeros for Standard 2 of 5

Bernhard-Krop opened this issue · 1 comments

Hi there!

My question is whether the leading zeros are required?

My barcode scanners (I'm using two) cannot read the barcodes with leading zeros. Reading the article on Wikipedia, I have found nothing that suggests that a barcode must always consist out of an even number of digits. Even the example there has an odd number of digits (the code "123456" is even, but with the checksum digit it is odd).

I have looked over several pages with barcodes of type Standard 2 of 5 and my barcode scanners could read them all (with or without checksum; with odd or even code length). So that how I've come to my question above. I don't think, the leading zero is required. And regarding my other issue, using leading zeros is also providing errors.

Kind regards,

Bernhard

EDIT 1:

The same question is regarding the type "Interleaved 2 of 5".

My comment in that issue applies to this issue as well.