barcode-java icon indicating copy to clipboard operation
barcode-java copied to clipboard

Java Barcode Image Generation Library

barcode-java barcode-java CI

Overview

This library was designed to give an easy class for developers to use when they need to generate barcode images from a string of data.

Supported Symbology List
Code 128 Code 93 Code 39 (Extended / Full ASCII)
Code11 EAN-8 FIM (Facing Identification Mark)
UPC-A UPC-E Pharmacode
MSI PostNet Standard 2 of 5
ISBN Codabar Interleaved 2 of 5
ITF-14 Telepen UPC Supplemental 2
JAN-13 EAN-13 UPC Supplemental 5

Usage

The jar is available in Maven Central and can be included via gradle:

implementation 'com.pnuema.java:barcode:1.13'

Then use the library to generate a barcode via:

Barcode barcode = new Barcode();
Image img = barcode.encode(BarcodeLib.TYPE.UPCA, "038000356216");

upca

You can specify the width, height, foreground color, background color, and whether or not to include the label to display the data thats encoded with the image.

Support

If you find this or any of my software useful and decide its worth supporting. You can do so here: Donate

Copyright and license

Copyright 2018-2022 Brad Barnhill. Code released under the MIT License.