- Home
- Products
- Integration
- Tutorial
- Barcode FAQ
- Purchase
- Company
Identcode, also known as German Postal 2 of 5 Identcode, Deutsche Post Identcode Barcode, is a 14-digit bar code of the postal carrier cooperation with information about the recipient.
Generate and create Identcode barcode using Java is one of the functions in OnBarcode's
Barcode for Java Generating Java library (jar file), which supports
generating & printing Identcode and 20+ other linear & 2D bar codes in Java application and software.
Identcode Generator and Reader library, SDK & application
Identcode Generator components and software include
.NET Identcode Generator,
C# Identcode Generator,
VB.NET Identcode Generator,
ASP.NET Identcode Generator,
Identcode Generator.
This document is providing a detailed Java sample source code about generating Identcode barcodes in Java class using
Java Barcode generation component.
Complete Identcode custmoization settings is included in
Java Identcode generating guide.
Generating Identcode barcode in Java class example:
Identcode barcode = new Identcode(); /* Identcode Valid data char set: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 (Digits) Identcode Valid data length: 11 digits only, excluding the last checksum digit */ barcode.setData("01234567890"); // Identcode 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(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:\\identcode.gif");