Dear Customers,
We've released Aspose.BarCode for Java version 1.0.0!
Product features:
Aspose.BarCode for Java is a set of barcode generation tools built for developers to add barcode functionalities in their Java applications or web deployments as Html, Jsp or Servlet pages.
- Support 12 types of one dimensional barcode generations
- BarCode size control. Auto Sizing, X-Dimension, BarHeight
- Borders and Margins settings
- Rotation at any angle
- Captions for custom labels drawn along with barcodes.
- Foreground and Background coloring settings
- Save images to files in Gif, Png, Jpg, Jpeg, Bmp formats and more
- Render barcode to Images, Printers, Graphics Objects, Http servlet response
Supported BarCode symbologies:
- Code 128
- Code 39 Standard
- Code 39 Extended
- Code 93 Standard
- Code 93 Extended
- Code 11
- Interleaved 2 of 5
- Standard 2 of 5
- MSI
- Codabar
- UPCA
- UPCE
Demos:
- Save barcode image to files
Code
//Instantiate barcode object
BarCodeBuilder bb = new BarCodeBuilder();
//Set up barcode symbology
bb.setSymbology(Symbology.CODE128);
//Set up code text (data to encode)
bb.setCodeText("12345678");
try
{
//Save image to c:\ in jpg format
bb.save("c:\\test.jpg", "jpg");
}
catch(Exception ex)
{
ex.printStackTrace();
}
Output:

- Render barcode to Grphics Objects:
Code:
public void paint(Graphics g)
{
BarCodeBuilder b = new BarCodeBuilder();
b.setSymbology(Symbology.CODE128);
b.setCodeText("12345678");
//Rotate the image for 45 degrees
b.setRotationAngle(45);
b.render(g);
}
Snapshot:

Code:
public class ServletSample extends HttpServlet
{
private static final long serialVersionUID = 1L;
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
{
BarCodeBuilder b = new BarCodeBuilder();
b.setSymbology(Symbology.CODE128);
b.setCodeText("12345678");
b.render(response);
}
}
Develop Plans:
We are planning to add barcode recognition features and more barcode symbologies including two dimensional barcodes in the future. One dimensional barcode recognition feature is our next stop.