bwipp / postscriptbarcode

Barcode Writer in Pure PostScript
https://bwipp.terryburton.co.uk
MIT License
462 stars 64 forks source link

pdf417/micropdf417: Use latch for pad for text spanning ECI(s) instead of ps #215

Closed gitlost closed 1 year ago

gitlost commented 1 year ago

For pdf417 and micropdf417, where text sequences span ECI(s) and the 1st sequence requires padding, ps shift can't be used as it affects the 1st character of the 2nd sequence. So need to pad with latches instead.

For instance 20 200 moveto (149.79^ECI000017Product) (parse parsefnc) /pdf417 /uk.co.terryburton.bwipp findresource exec would formerly decode as "149.79}product" instead of "149.79Product".

Also use numeric compaction for all-numeric input with length >= 8.