unable to parse barcode
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 30/100
Research direction
The report concerns GS1-128 output from the CODE_128 writer when the GS1_FORMAT hint is set and two application identifiers are concatenated with FNC1 separators. Start with the writer's GS1 handling for Code 128 and check the generated string for FNC1 placement between AI (15) and AI (10). Done means a barcode with two AIs decodes correctly. The issue never states the expected output or a failing test, so confirm the intended behaviour with the maintainer first.
Written by the indexing model from the issue text.
Description
i have the problem that my scanner can't parse a barcode that contains two application identifiers. The barcode i generated for a sscc works fine, but it only contains one application identifier.
here is a snippet from my code. maybe i am using the library wrong?
private static char _fnc1 = (char)29;
public static Bitmap GenerateBestBeforeBatchId128EAN(string bestBeforeDate, string batchId)
{
string debug = $"{_fnc1}(15){bestBeforeDate}{_fnc1}(10){batchId}";
Logger.WriteDebugLog(debug);
BarcodeWriter barcodeWriter = new BarcodeWriter
{
Format = BarcodeFormat.CODE_128,
Options = new EncodingOptions
{
Width = _barcodeWidth,
Height = _barcodeHeight,
Margin = _margin,
// controls if the content string appears in the output img
PureBarcode = false
}
};
barcodeWriter.Options.Hints[EncodeHintType.GS1_FORMAT] = true;
return barcodeWriter.Write(data);BarcodeWriter barcodeWriter = new BarcodeWriter
{
Format = BarcodeFormat.CODE_128,
Options = new EncodingOptions
{
Width = _barcodeWidth,
Height = _barcodeHeight,
Margin = _margin,
// controls if the content string appears in the output img
PureBarcode = false
}
};
barcodeWriter.Options.Hints[EncodeHintType.GS1_FORMAT] = true;
return barcodeWriter.Write($"{_fnc1}(15){bestBeforeDate}(10){batchId}");
}
- Dominant language
- C#
- Stars
- 3.1k
- Forks
- 704
- Avg merge
- 13d 17h
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from micjahn/ZXing.Net
-
crop() overrides document "0 <= top <= Height"; should be top < Height like left < WidthPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
Difficulty 3/5 Half a day Newbie friendliness 22/100
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
Difficulty 4/5 3-5 days Newbie friendliness 12/100
All issues in micjahn/ZXing.Net
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 89/100
getsentry/sentry-dotnet#5833 · 1 comment ·
Maintainers usually reply within 1 day
-
area: core priority: low type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
RicoSuter/Namotion.Interceptor#863 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitfoundation/bitplatform#14428 · 1 comment ·
Maintainers usually reply within 1 day
-
area-cli
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day