I use PDF417 lib to create barcode based on the
following scheme: every field has a tag id byte, a length
byte and content. Everything works perfectly fine
except for some data. Sometimes, I lose a tag id byte
(that makes my barcode unreadable): in binary, the
corresponding sequence looks like: ... 31 31 31 26 09 31
31 31 31 31 31 31 31 31 27 10 31 31 31 ....
The read barcode has skipped the 26. I tried debugging
the pdf417lib class and I got that: in the "breakstring"
method of Pdf417lib class, the first "... 31 31 ..."
sequence is seen as a text segment "T". The 26 is seen
as a 1-byte long binary segment "B" and the "09 31 31
31..." as another text segment. However, in the
optimizing loops (still in Pdf417lib class), the 1-byte long
segment is merged and finally lost. That is why I do not
get this byte when I read the generated barcode.
Please, let me know if I am not correctly using the
library (maybe specifications do not allow 1-byte long
segments) or if that byte should be included in the
Thanks a lot.