Comments (5)
from barcodelib.
That explains the difference.
Is there a way to force the library to encode using code128 and not switching to 128-C regardless the data?
Thank you.
from barcodelib.
from barcodelib.
After some digging I found out why the barcodes are different.
Because my numbers have odd number of digits (19) if I use dynamic code 128 and don't specify the sub-type (A, B or C) your library is using code128C for the first 18 digits (9 groups x 2 digits) and code128A for the last 19th single digit. All others code128 generators are using code128B for the last 19th single digit. Technically, both barcodes are valid and scanners can read them. I guess there isn't a way to force the library to use 128B for the last digit without changing the source code.
from barcodelib.
I switched the two IFs that are choosing the encoding (128A or128B) for the last single digit in Code128.cs at lines 194 and 209 and now it works as I want. Now 128B has higher priority than 128A. For me 128B looks more common in cases like this.
from barcodelib.
Related Issues (20)
- Barcodelib 2.4.0 compatibility with 3.0.0 HOT 11
- After Update, It doesnt work. HOT 3
- Having Issue with SaveImage HOT 2
- Code 39, quiet zone and narrow/wide HOT 2
- Code 39, memory leak HOT 3
- Code 39 Full ASCII and check character HOT 1
- BarcodeLib version 3.0.0 not working docker linux HOT 3
- Codabar, encoding of '+' is wrong HOT 4
- Suggestion for improvement HOT 2
- Codabar, encodings for B and C are swapped HOT 3
- System.Drawing.SafeNativeMethods.Gdip HOT 1
- Standard2of5, wide to narrow ratio differs between data and start and stop patterns HOT 1
- MSI check digit(s) calculation HOT 1
- FIM has an E HOT 1
- POSTNET, height of "half" bars HOT 2
- Vb showing image in picturebox HOT 1
- .NET Framework 4.8 HOT 5
- Barcode type: IATA 2 of 5 HOT 2
- Code 93 encoding bug HOT 5
- GS1-128 FNC1 special char throws exception
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from barcodelib.