Java Interleaved 2 of 5 Generator Library SDK Integration & Developer Guide
Generate barcode Interleaved 2 of 5 images in Java class, Servlet, JSP, J2EE with complete sample Java source code
- Generate, create Interleaved 2 of 5 in Java applications
- Easy to install & integrate barcode Interleaved 2 of 5 generation library SDK into Java developments
- Generate over 30 linear, 2d barcode images in Java including
Java QRCode,
Java Data Matrix,
Java PDF417,
Java ITF14,
Java Code 2 of 5
- Generate Interleaved 2 of 5 images in Java class, Java Bean, Swing, Applet, J2SE
- Create barcode Interleaved 2 of 5 in Java web application, including Servlet, JSP, EJB, Tomcat, JBoss, J2EE
- Create & Print Interleaved 2 of 5 barcode in BIRT reports designer and BIRT report runtime
- Generate & Draw Interleaved 2 of 5 in Jasper Reports, iReport
- Encode Interleaved 2 of 5 images to jpeg, eps, gif, png, tiff, bitmap files in Java program
Index
Java Interleaved 2 of 5 Generator Introduction
Interleaved 2 of 5, also known as ANSI/AIM ITF 25, ANSI/AIM I-2/5, is higher-density numeric linear barcode symbology based upon the Standard 2 of 5 barcode symbology.
Generate and create Interleaved 2 of 5 barcode using Java is one of the functions in OnBarcode's
Barcode for Java Generating Java library (jar file), which supports
generating & printing Interleaved 2 of 5 and 20+ other linear & 2D bar codes in Java application and software.
Interleaved 2 of 5 Generator and Reader library, SDK & application
Interleaved 2 of 5 Generator components and software include
.NET Interleaved 2 of 5 Generator,
C# Interleaved 2 of 5 Generator,
VB.NET Interleaved 2 of 5 Generator,
ASP.NET Interleaved 2 of 5 Generator,
Interleaved 2 of 5 Generator.
This document is providing a detailed Java sample source code about generating Interleaved 2 of 5 barcodes in Java class using
Java Barcode generation component.
Complete Interleaved 2 of 5 custmoization settings is included in
Java Interleaved 2 of 5 generating guide.
Generate Interleaved 2 of 5 Barcodes in Java
Generating Interleaved 2 of 5 barcode in Java class example:
Interleaved25 barcode = new Interleaved25();
/*
Interleaved 2 of 5 Valid data char set:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9 (Digits)
*/
barcode.setData("112233445566");
barcode.setAddCheckSum(true);
// Interleaved 2 of 5 Wide Narrow bar Ratio
// Valid value is from 2.0 to 3.0 inclusive.
barcode.setN(3.0f);
// Unit of Measure, pixel, cm, or inch
barcode.setUom(IBarcode.UOM_PIXEL);
// barcode bar module width (X) in pixel
barcode.setX(3f);
// barcode bar module height (Y) in pixel
barcode.setY(75f);
// barcode image margins
barcode.setLeftMargin(10f);
barcode.setRightMargin(10f);
barcode.setTopMargin(10f);
barcode.setBottomMargin(10f);
// barcode image resolution in dpi
barcode.setResolution(72);
// disply barcode encoding data below the barcode
barcode.setShowText(true);
// barcode encoding data font style
barcode.setTextFont(new Font("Arial", 0, 12));
// space between barcode and barcode encoding data
barcode.setTextMargin(6);
// barcode displaying angle
barcode.setRotate(IBarcode.ROTATE_0);
barcode.drawBarcode("C:\\interleaved2of5.gif");
Java Barcode Generation Demo Source Codes: