https://github.com/barnhill/barcode-java
  
  
    Java Barcode Image Generation Library 
    https://github.com/barnhill/barcode-java
  
barcode barcode-generator barcode-images barcodes java java-library
        Last synced: 8 months ago 
        JSON representation
    
Java Barcode Image Generation Library
- Host: GitHub
- URL: https://github.com/barnhill/barcode-java
- Owner: barnhill
- License: mit
- Created: 2018-08-11T19:33:17.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2025-03-04T04:18:15.000Z (8 months ago)
- Last Synced: 2025-03-04T05:24:51.218Z (8 months ago)
- Topics: barcode, barcode-generator, barcode-images, barcodes, java, java-library
- Language: Java
- Homepage:
- Size: 653 KB
- Stars: 27
- Watchers: 3
- Forks: 14
- Open Issues: 2
- 
            Metadata Files:
            - Readme: README.md
- License: LICENSE
 
Awesome Lists containing this project
README
          # barcode-java 
### 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:
```Gradle
implementation 'com.pnuema.java:barcode:2.7.3'
```
Then use the library to generate a barcode via:
```Java
Barcode barcode = new Barcode();
Image img = barcode.encode(BarcodeLib.TYPE.UPCA, "038000356216");
```

You can specify the width, height, foreground color, background color, and whether to include the label to display the data that's 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:  [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QKT9PSYTDNSXS)
### Copyright and license ###
Copyright 2018-2024 Brad Barnhill. Code released under the [MIT License](https://github.com/bbarnhill/barcode-java/blob/master/LICENSE).