Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly supports barcodes for GTIN-14 using the ITF format #973

Merged
merged 23 commits into from
Nov 29, 2021

Conversation

cschierle
Copy link

@cschierle cschierle commented Nov 25, 2021

This is commonly used to create barcodes for GTINs with 14 digits used for certain types of packaging (see https://en.wikipedia.org/wiki/ITF-14).

BarcodePdfReplaceHandler and BarcodeController now both use zxing to generate barcodes.

NOTE: BarcodePdfReplaceHandler did generate barcodes for such GTINs, but they were unreliable when scanning.

Example:
The previous PDF replace produced a barcode for <img src="barcode://ean/12345678987654"/>, that cannot be reliably resolved back to "12345678987654":
12345678987654_old

With these changes, the produced barcode looks like this and can be scanned reliably:
12345678987654_new

Fixes: SIRI-487

Christian Schierle added 4 commits November 25, 2021 11:54
This is commonly used to create barcodes for GTINs with 14 digits used for certain types of packaging (see https://en.wikipedia.org/wiki/ITF-14).

Fixes: SIRI-487
Fixes: SIRI-487
Fixes: SIRI-487
@cschierle cschierle added the 👶🏻 Trivial Easy to review label Nov 25, 2021
Christian Schierle and others added 2 commits November 25, 2021 14:29
Fixes: SIRI-487

Co-authored-by: Sascha Bieberstein <sabieber@users.noreply.github.com>
Christian Schierle added 7 commits November 29, 2021 10:27
for all types except the special interleaved2of5checksummed

Fixes: SIRI-487
Fixes: SIRI-487
Fixes: SIRI-487
Fixes: SIRI-487
@cschierle cschierle removed the 👶🏻 Trivial Easy to review label Nov 29, 2021
@cschierle cschierle changed the title Renders barcodes for GTIN-14 in the ITF format Properly supports barcodes for GTIN-14 using the ITF format Nov 29, 2021
@cschierle cschierle marked this pull request as ready for review November 29, 2021 10:28
Fixes: SIRI-487
Christian Schierle added 5 commits November 29, 2021 14:27
Scaling is done via css.

Fixes: SIRI-487
This was only needed to produce a base image of sufficient size with the previous barcode library.
Scaling is done via css.

Fixes: SIRI-487
@cschierle cschierle merged commit 31e8636 into develop Nov 29, 2021
@cschierle cschierle deleted the feature/csc/SIRI-487 branch November 29, 2021 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants