Java ITF-14 Generator Library SDK Integration & Developer Guide

Generate barcode ITF-14 images in Java class, Servlet, JSP, J2EE with complete sample Java source code


  • Generate, create ITF-14 in Java applications
  • Easy to install & integrate barcode ITF-14 generation library SDK into Java developments
  • Generate over 30 linear, 2d barcode images in Java including Java QR Code, Java Data Matrix, Java Interleaved 2/5, Java PDF-417, Java Code 128
  • Generate ITF-14 images in Java class, Java Bean, Swing, Applet, J2SE
  • Create barcode ITF-14 in Java web application, including Servlet, JSP, EJB, Tomcat, JBoss, J2EE
  • Create & Print ITF-14 barcode in BIRT reports designer and BIRT report runtime
  • Generate & Draw ITF-14 in Jasper Reports, iReport
  • Encode ITF-14 images to jpeg, eps, gif, png, tiff, bitmap files in Java program


Index
 

Java ITF-14 Generator Introduction

ITF-14, also known as UPC Shipping Container Symbol ITF-14, ITF14, is numeric-only linear barcode generated according to GS1 standard.

Generate and create ITF-14 barcode using Java is one of the functions in OnBarcode's Barcode for Java Generating Java library (jar file), which supports generating & printing ITF-14 and 20+ other linear & 2D bar codes in Java application and software.

ITF-14 Generator and Reader library, SDK & application
ITF-14 Generator components and software include ITF-14 .NET, ITF-14 C#, ITF-14 VB.NET, ITF-14 ASP.NET, ITF-14 Generator.

This document is providing a detailed Java sample source code about generating ITF-14 barcodes in Java class using Java Barcode generation component. Complete ITF-14 custmoization settings is included in Java ITF-14 generating guide.

 

Generate ITF-14 Barcodes in Java

Generating ITF-14 barcode in Java class example:

	ITF14 barcode = new ITF14();
	
	/*
	   ITF 14 Valid data char set:
	        0, 1, 2, 3, 4, 5, 6, 7, 8, 9 (Digits)
	
	   ITF 14 Valid data length: 13 digits only, excluding the last checksum digit
	*/
	barcode.setData("0123456789012");
	
	// ITF-14 Wide Narrow bar Ratio
	// Valid value is from 2.0 to 3.0 inclusive.
	barcode.setN(3.0f);
	
	// ITF-14 bearer bar size vs bar module (X) size ratio
	// Valid values are 0-10 which are a multiple of X.
	barcode.setBearerBarHori(1);
	barcode.setBearerBarVert(1);
	
	// 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:\\itf14.gif");


Java Barcode Generation Demo Source Codes:









OnBarcode is a market-leading provider of barcode generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides high quality tutorials and guides for various linear, 2d barcode information, such as C# Barcode, QR Code C#, QR Code VB.NET, QR Code ASP.NET, QR Code .NET, ASP.NET Barcode. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.