UPC-A Barcode Generation library is one of Java Barcode generator supporting types which can draw high quality UPC-A barcodes in Java various projects with enabling a supplement barcode image or not. UPC-A barcode generator in Java can encode 12 numeric data including the last check character for valid UPC-A barcode image in Java programs.
Related .net document control helps:
asp.net pdf document viewer: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
asp.net mvc pdf editor: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
asp.net pdf viewer: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net dicom document viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
asp.net annotate pdf:
ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
asp.net excel viewer: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
asp.net text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
UPC-A, a linear barcode, is the most common form of UPC. UPC is abbreviated from Universal Product Code and is used worldwide in North America, and in countries including the UK, Australia, and New Zealand for tracking trade items in stores. UPC-A can only encode 12 data with numeric character from 0 to 9 including the last check sum character.
Features of UPC-A Generator for Java
- Various developer licenses are designed for any possible requirements for Java projects.
- Royalty free with the purchase of permanent license including source code for Java UPC-A generator.
- Applets, Servlets, Class Library, Java Bean are included in each JAR file for UPC-A and other barcodes.
- Easy to integrate with Jasper Reports, iReport, Eclipse BIRT, Oracle Reports.
- Compatible with headless Java which can make easy UPC-A images generation without and graphic environment.
- Graphic configuration options allow Java barcode image background, foreground color setting into any human-readable color.
- Text options include show text or not, text margin setting, show check sum digit or not choices for UPC-A linear barcode in java applications.
- 2 or 5 supplement digits can be encoded for the supplement barcode image with Java UPC-A barcode Generation SDK.
- Supplement barcode size can be adjusted with supplement height and supplement space two parameters in Java applications.
Generate UPC-A linear Barcodes
Install UPC-A Generation Component for Java
- Install Java with JDK 4.0 and above version and make sure the Java executables are included in the search path.
- Download the Java UPC-A Generation Package and extract the file.
- Copy .jar file in the Java UPC-A Generation package into the Java class path and the barcode library is valid here in Java.
- Then the Java UPC-A Generator is installed and valid for implementation to print UPC-A images.
Generate Barcodes in Java Class
//Build a Java barcode object for a specific barcode type
UPCA barcode = new UPCA();
//Encode data for UPC-A barcode image text in Java Class
barcode.setData("12345678912");
//Encode 2 or 5 supplement data for UPC-A linear barcode image
barcode.setsupplementData("12345");
//Rotate UPC-A barcode image with 0, 90, 180, 270 degrees
barcode.setRotate(180);
//Draw UPC-A images in the file with fixed image format
barcode.drawBarcode(".../java-UPC-A.jpeg");
Create Barcodes into EPS
//Build a Java barcode object for a specific barcode type
UPCA barcode = new UPCA();
//Encode data for UPC-A barcode image text in Java Class
barcode.setData("12345678912");
//Encode 2 or 5 supplement data for UPC-A linear barcode image
barcode.setsupplementData("12");
//Set UPC-A barcode foreground color using Java
barcode.setforegroundColor(RED);
//Fix the bar alignment for UPC-A barcode images in Java
barcode.setbarAlignment(RIGHT);
//Draw UPC-A images in the file with EPS
barcode.drawBarcode(".../java-UPC-A.eps");
Encode UPC-A Barcode Images in HTML or JSP pages
- Copy the Java Barcode Package with files in it into Apache Tomcat.
- Open Apache Tomcat and go to http://YourDomain:Port/barcode/barcode?DATA=12345678912&TYPE=UPCA
- Insert a image tag with img into the above page, like <http://YourDomain:Port/barcode/barcode?DATA=12345678912&TYPE=UPCA" >