Comments (3)
@Vandersteen I think it is correct behavior because Code128 automatically switch between the three subsets (A, B, and C) to code the data in the shortest form.
And if subset C is picked, a leading "0" is added if there are an odd number of digits in the code as you also found.
Specifying Code128B specifically solved the issue for me.
from netbarcode.
Thanks for reporting, I'm investigating the issue.
from netbarcode.
It appears to be happening when having an 'uneven' number of numbers:
Generates a correct barcode:
- 1234
- 123456
- 12345678
Generates a barcode prefixed with 0:
- 123
- 12345
- 1234567
Which appears to be coming from:
NetBarcode/NetBarcode/Types/Code128.cs
Line 255 in ad1402a
I don't have knowledge of the CODE128 barcode structure so this might be correct behaviour
from netbarcode.
Related Issues (20)
- Nice crappy bugged lib HOT 1
- Add new constructor HOT 2
- Bars width and image size HOT 4
- EAN 13 check digit
- System.NullReferenceException: Object reference not set to an instance of an object. HOT 4
- barcode.SaveImage does not save image HOT 2
- Codabar invert lettter C and B HOT 6
- generated barcode is incorrect HOT 5
- V2 Feedback HOT 4
- Support .NET 6 on Linux HOT 5
- Linux high memory usage .net 5 HOT 3
- V1.5 Feedback HOT 2
- Crashes when no fonts are found. Even if showLabel is set to false. HOT 1
- Change Label font size HOT 2
- DrawLines method from ImageSharp does not render the barcode lines correctly HOT 1
- Incorrect generation result HOT 1
- Support for Skia Canvas
- System.ArgumentNullException: 'Parameter "name" must be not null. (Parameter 'name')' HOT 1
- DllNotFoundException: Unable to load DLL 'libgdiplus' on mac HOT 6
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 netbarcode.