lindell / JsBarcode

Barcode generation library written in JavaScript that works in both the browser and on Node.js
http://lindell.me/JsBarcode
MIT License
5.49k stars 1.11k forks source link

ITF-14 - Bearer Bar #283

Open wmkDev opened 5 years ago

wmkDev commented 5 years ago

Hi!

First of all, congrats for the great work with this lib!

So, I'm wanting to use this lib to create ITF-14 using the GS1 implementation, but it's mandatory for my use case to create the "bearer bar", any planning to add this or chance to accept a PR for it?

ITF-14: https://en.wikipedia.org/wiki/ITF-14 https://www.gtin.info/itf-14-barcodes/

From the oficial GS1 docs - Page 232 (https://www.gs1br.org/hackathon/Documents/GS1_General_Specifications.pdf):

5.3.2.4 Bearer bars The purpose of a bearer bar is to equalise the pressure exerted by the printing plate over the entire surface of the symbol and to enhance reading reliability by helping to reduce the probability of misreads or short scans that may occur when a skewed scanning beam enters or exits the barcode through its top or bottom edge. The bearer bar is mandatory unless it is not technically feasible to apply it (in which case reading reliability will be reduced). GS1 General Specifications Release 16.0, Ratified, Jan 2016 © 2016 GS1 AISBL Page 233 of 438 For printing methods requiring printing plates, the nominal bearer bar has a constant thickness of 4.83 millimetres (0.190 inch) and must completely surround the symbol, including its Quiet Zones, and butt directly against the top and bottom of the bars (dark bars) of the symbol. For printing methods that do not require printing plates, the bearer bar SHALL be a minimum of twice the width of a narrow bar (dark bar) and need only appear at the top and bottom of the symbol, butting directly against the top and bottom of the symbol bars (dark bars). The bearer bar may extend above and below the Quiet Zones. However, it is not mandatory to print the vertical sections of the bearer bar. See figure 5.3.2.4-1.

JsBarcode: active

Expected: expected

andrehsmendes commented 5 years ago

That would be a great addition.

stefenphelps commented 1 year ago

I'm also in need of this.