Java EAN 13 Barcode Generator
Generate barcode EAN 13 with check digit image label in Java, apache web project without font. Free download with Java example open source code
How to generate, display, print EAN 13 barcode labels in Java without using font. Free download.
- The created barcodes are compatible with the latest EAN -13 barcode specification
- This KA.Barcode for Java supports JDK 1.5.0_22 and later versions
- EAN-13 Barcode Generator for Java is tested in IntelliJ IDEA 5.0 and iReport 3.7.5
- It can be operated in multiple operating systems, including Windows 7, Windows Vista, etc
- It generates high quality EAN-13 barcode images in Java class easily
- EAN-13 barcodes can also be created in iReport and Eclipse BIRT
- Rich EAN-13 barcode parameters are available to be adjusted
- The EAN-13 barcodes are created in PNG, BMP, GIF and JPEG image formats
EAN-13 Barcode Generator for Java Description
EAN-13 barcode generator for Java is professional in creating high quality EAN-13 and many other linear and 2D barcodes in Java class. It also supports to create barcodes in iReport and BIRT. Additionally, flexible barcode settings with detailed tutorials are provided. So developers can customize their barcodes easily.
EAN-13 Barcode Overview in Java
EAN-13 is a continuous and self-checking symbology which has fixed data length (13 digits, including the check digit). It is originally adopted in supermarkets to identify products at the point of salse.
EAN-13 Encodable Character Set
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
EAN-13 Data Length
- 13 digits (Please just input 12 digits, for KA.Barcode automatically add the last check digit for you)
EAN-13, based upon the UPC-A standard, was implemented by the International Article Numbering Association (EAN) in Europe.
EAN-13 is a superset of UPC-A. This means that any software or hardware capable of reading an EAN-13 symbol will automatically be able to read an UPC-A symbol.
Using EAN-13 barcode generator Java library, you can only generate EAN-13 in Java class,
but also are enable to
create EAN-8,
generate UPC-A,
generate UPC-E,
create QR Code,
print Data Matrix,
generate PDF-417,
generate Code 128,
generate Code 39,
encode GS1-128 in the Java web apps.
EAN-13 Data Code Encoding in Java
EAN-13 characters and data length encoding in Java
EAN-13 barcode should encode numeric digits from 0 through 9.
EAN-13 code includes 12 digits of GS1 data message along with a trailing check digit, for a total of 13 digits of bar code data.
In your Java class, you need input the first 12 digits of EAN-13, and the barcode generator java library will automatically calculate the check digit for you.
EAN-13 may be accompanies by an add-on symbol (2 digits or 5 digits)
EAN-13 Check Digit generation in Java
The check digit is an additional digit used to verify that a bar code has been scanned correctly. In EAN-13, the checksum digit is based on a modulo 10 calculation.
Using Java EAN-13 barcode generator in Java class, web app, Java reporting application, you need input 12 digits data with or without the last checksum digit.
The barcode encoder software will automatically calculate the check digit based on your 12 code digits.
How to Generate EAN-13 Barcodes in Java Class
Generating EAN-13 barcodes in Java is straightforward using the com.keepautomation.barcode.EAN13 class. This is the core Java class for EAN-13 generation in the KeepAutomation library.
Below is a step-by-step guide with sample code, split into clear execution and verification phases for ease of use.
- Initialize a new EAN13 object: This is the core object for EAN-13 generation, responsible for storing barcode configuration and data.
- Set the EAN-13 data using the setData() method. You can input either 12 digits (the library will auto-calculate the 13th check digit) or the full 13 digits (the library will validate the check digit).
- Call the drawBarcode() method to export the EAN-13 barcode to a PNG image file (or other supported formats).
EAN-13 Add-on Code (2-Digit or 5-Digit)
EAN-13 barcodes can include an optional add-on code to store additional product information (e.g., batch numbers, expiration dates, or pricing details). This add-on code is a 2-digit or 5-digit numeric extension that appears alongside the main EAN-13 barcode.
To add an add-on code to your EAN-13 barcode in Java, use the setSupData() method. This method allows you to attach the add-on code to the main EAN-13 barcode.
Frequently Asked Questions
EAN-13, now known as a GTIN (Global Trade Item Number), is a 13-digit barcode: 12 data digits plus 1 check digit.
EAN (short for European Article Number) has been renamed GTIN (Global Trade Item Number) and
it uses its digits to uniquely identify products in the global marketplace.
How do EAN and EAN-13 differ from each other?
EAN barcodes consist of three main types: EAN-13, EAN-8, plus the 2-digit or 5-digit add-on barcodes that go with them.
EAN-13 is the most common type within this category, featuring a 13-number code.
How is an EAN-13 barcode formatted?
The 13 digits are divided into four distinct parts:
- The first 2 or 3 digits represent the country or numbering system.
- The next 4 or 5 digits identify the manufacturer.
- The following 5 digits specify the product itself.
How do you check if an EAN-13 barcode you've created is valid?
EAN-13 has a check digit as its last digit. This digit verifies the accuracy of the preceding 12 digits. It is calculated from the first 12 digits to detect any errors.
What is the minimum required size for EAN-13, and how to use it
The minimum size suggested by GS1 for an EAN-13 barcode is 30mm in width and 20mm in height.
Apply this by setting your design or printing software to these minimum values.
What's the way to print EAN-13 barcodes?
To print scannable EAN-13 barcodes, pay attention to:
- Ensure the barcode's resolution (DPI) is equal to or higher than the printer's DPI.
- The human-readable text for EAN-13 must be easy to read. Using the OCR-B font, as suggested by GS1, is best practice.
|
Free Trial DownloadJava Class EAN-13iReport EAN-13How To Start Data Matrix for JavaPDF417 for JavaQR Code for JavamoreCodabar for JavaCode 39 for JavaCode 128 for JavaEAN-8 for JavaEAN-13 for Java EAN 128 for JavaIntelligent Mail for JavaInterleaved 2 of 5 for JavaISBN for JavaITF-14 for JavaRM4SCC for JavaUPC-A for JavaUPC-E for Javamore
|