tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 
 Barcodes > Barbecue > Bookland Barcode

Bookland Barcode 

Barbecue is a free and open source Java library for Barcode generation. This requires the library barbecue-1.5-beta1.jar to be in classpath. The following example shows generating Bookland Barcode.

File Name  :  
com/bethecoder/tutorials/barbecue/BooklandBarCodeTest.java 
Author  :  Sudhakar KV
Email  :  kvenkatasudhakar@gmail.com
   
package com.bethecoder.tutorials.barbecue;

import java.io.File;

import net.sourceforge.barbecue.Barcode;
import net.sourceforge.barbecue.BarcodeFactory;
import net.sourceforge.barbecue.BarcodeImageHandler;

public class BooklandBarCodeTest {

  public static void main (String [] argsthrows Exception {

    //Get Bookland Barcode instance from the Factory
    //International Standard Book Number (ISBN)
    Barcode barcode = BarcodeFactory.createBookland("0-19-852663-6");

    File imgFile = new File("testbookland.png");

    //Write the bar code to PNG file
    BarcodeImageHandler.savePNG(barcode, imgFile);
  }
}
   

It gives the following output,

Bookland Barcode


                    Print

   



Books Recommendation

 
 
bl  br