Ported r2594 from ZXing

Original commit message: "PDF417 improvements from Hartmut, Christoph"