barnhill / barcodelib

C# Barcode Image Generation Library
Apache License 2.0
731 stars 239 forks source link

Problem with EAN-8 code #180

Open Shamil-7 opened 9 months ago

Shamil-7 commented 9 months ago

Hello @barnhill ! How can I get ean-8 code as shown in the attached picture? EAN-8

barnhill commented 9 months ago

I think EAN8 has a bug in it

Shamil-7 commented 9 months ago

@barnhill can you to fix a bug please?

rob313663 commented 9 months ago

I tested to generate an EAN-8-code with the digits "48350006" in BarcodeLib v3.0.2.0. Then I read the code with an Android device with built-in barcode scanner and it could scan the code without problems.

image

Shamil, do you mean:

a) With the text looking as in your example? I don't think BarcodeLib supports that.

b) Do you need help how to create an EAN-8 barcode in code?

/rob

Shamil-7 commented 9 months ago

@rob313663 I need help creating ean-8 like in the picture EAN-8

barnhill commented 4 months ago

A modification to the Labels.cs would be needed to support printing labels like this for EAN-8. Im open to help with creating a pull request with the needed changes to Labels.cs.