Skip to content

Jake-Derrick/Ecia.Barcode.Parser

Repository files navigation

Ecia.Barcode.Parser

Ecia.Barcode.Parser provides the ability to easily parse ECIA barcode strings.

Disclaimer: This package is not an official ECIA product and is not endorsed or affiliated with ECIA. It is an independent implementation for parsing ECIA barcode strings.

Install Package

NuGet

Available on NuGet.

Install with the dotnet CLI: dotnet add package Ecia.Barcode.Parser, or through the NuGet Package Manager in Visual Studio.

Usage

See the sample app for a basic example!

Getting an instance of the Parser

Dependency Injection

var appBuilder = WebApplication.CreateBuilder(args);
appBuilder.Services.AddTransient<IEciaBarcodeParser, EciaBarcodeParser>();

Without DI

var parser = new EciaBarcodeParser();

Parsing a Barcode string

var barcodeString = "some ecia barcode string";
var parser = new EciaBarcodeParser();
ParsedBarcode parsedBarcode = parser.ParseBarcode(barcodeString);

Basic ECIA compliance validation

ParsedBarcode parsedBarcode = parser.ParseBarcode(barcodeString);
// LabelFormat is used to determine the required identifiers. Omit or use LabelFormat.Unkown when the LabelFormat isn't known!
ValidationResult validationResult = parser.ValidateParsedBarcodeCompliance(parsedBarcode, LabelFormat.PackingSlip);

ECIA Documentation

ECIA 2D barcode documentation EIGP 114.2018

About

A library to parse ECIA barcode strings

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages