- Home
- Products
- Integration
- Tutorial
- Barcode FAQ
- Purchase
- Company
Code 93, also known as ANSI/AIM Code 93, ANSI/AIM Code 93, Uniform Symbology Specification Code 93, provides a higher density and data security enhancement to Code 39.
Generate and create Code 93 barcode using Java is one of the functions in OnBarcode's
Barcode for Java Generating Java library (jar file), which supports
generating & printing Code 93 and 20+ other linear & 2D bar codes in Java application and software.
Code 93 Generator and Reader library, SDK & application
Code 93 Generator components and software include
Code 93 for .NET,
Code 93 for C#,
Code 93 for VB.NET,
Code 93 for ASP.NET,
Code 93 Generator.
This document is providing a detailed Java sample source code about generating Code 93 barcodes in Java class using
Java Barcode generation component.
Complete Code 93 custmoization settings is included in
Java Code 93 generating guide.
Generating Code 93 barcode in Java class example:
Code93 barcode = new Code93(); /* Code 93 Valid data char set: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 (Digits) A - Z (Uppercase letters) - (Dash), $ (Dollar), % (Percentage), (Space), . (Point), / (Slash), + (Plus) */ barcode.setData("CODE93DATA"); // 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(0f); barcode.setRightMargin(0f); barcode.setTopMargin(0f); barcode.setBottomMargin(0f); // 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:\\code93.gif");