Giter Site home page Giter Site logo

barcoder's Introduction

Barcoder - Barcode Encoding Library

Build status

Lightweight Barcode Encoding Library for .NET Framework, .NET Standard and .NET Core.

Code ported from the GO project https://github.com/boombuler/barcode by Florian Sundermann.

Supported Barcode Types:

  • 2 of 5
  • Codabar
  • Code 39
  • Code 93
  • Code 128
  • EAN 8
  • EAN 13
  • QR Code

To be ported:

  • Aztec Code
  • Data Matrix
  • PDF 417

NuGet package

To install the main package:

PM> Install-Package Barcoder

To install the SvgRenderer:

PM> Install-Package Barcoder.Renderer.Svg

Usage

var barcode = Code128Encoder.Encode("FOO/BAR/12345");
var renderer = new SvgRenderer();

using (var stream = new MemoryStream())
using (var reader = new StreamReader(stream))
{
    renderer.Render(barcode, stream);
    stream.Position = 0;

    string svg = reader.ReadToEnd();
    Console.WriteLine(svg);
}

Contributions

Feel free to dig into the linked GO project and help porting other barcode types.

Before you start, it's best to comment on the related issue so we don't work on the same type.

barcoder's People

Contributors

huysentruitw avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.