metafloor / bwip-js

Barcode Writer in Pure JavaScript
Other
2.12k stars 305 forks source link

GS1 Data Matrix code generation is not implemented #274

Closed dkhizhniak closed 1 year ago

dkhizhniak commented 1 year ago

Dear developers,

I would like to generate GS1 Data Matrix code. There is no such an option on the website: https://data-manager.qrcode.macherel.fr/. I am not able to hardcode the value found in the list: https://github.com/metafloor/bwip-js/wiki/BWIPP-Barcode-Types.

When I put the code manually I get the following error: dict-marker-not-found

It can be also checked from here: http://bwipjs-api.metafloor.com/?bcid=gs1datamatrix&text=12345

I think there is no implementation for the particular code. Please fix.

mgh128 commented 1 year ago

Dear @dkhizhniak , all

GS1 DataMatrix is supported but the text string needs to be a valid element string in which GS1 Application Identifiers are expressed in round brackets, preceding their values.

For example, http://bwipjs-api.metafloor.com/?bcid=gs1datamatrix&text=(01)79521141123453(17)221117(10)ABC123(21)987XYZ generates a GS1 DataMatrix symbol for element string (01)79521141123453(17)221117(10)ABC123(21)987XYZ where:

Further information about GS1 Application Identifiers can be found in the GS1 General Specifications and also at https://www.gs1.org/standards/barcodes/application-identifiers?lang=en

dkhizhniak commented 1 year ago

Thank you @mgh128, that works for me.