Java EAN-128 (GS1-128) Generator Library SDK Integration & Developer Guide

Generate barcode EAN-128 (GS1-128) images in Java class, Servlet, JSP, J2EE with complete sample Java source code


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


Index
 

Java EAN-128 Generator Introduction

GS1-128, former known as EAN-128, UCC-128, USS-128, is alphanumeric linear barcode developed on Code 128, however, using GS1 standard.

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

EAN-128 Generator and Reader library, SDK & application
EAN-128 Generator components and software include GS1 128 .NET, GS1 128 C#, GS1 128 VB.NET, GS1 128 ASP.NET, GS1 128 Generator.

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

 

Generate GS1-128 Barcodes in Java

Generating GS1-128 barcode in Java class example:

	EAN128 barcode = new EAN128();
	
	/*
	   GS1-128 / EAN-128 Valid data char set:
	        all 128 ASCII characters (Char from 0 to 127)
	
	   to encode Application Identifier (AI), add "()" around the AI code, and followed by the AI data
	*/
	barcode.setData("(00)350123451234567894(21)01234567");
	
	//  Set the processTilde property to true, if you want use the tilde character "~"
	//  to specify special characters in the input data. Default is false.
	//  1) All 128 ISO/IEC 646 characters, i.e. characters 0 to 127 inclusive, in accordance with ISO/IEC 646.
	//       NOTE This version consists of the G0 set of ISO/IEC 646 and the C0 set of ISO/IEC 6429 with values 28 - 31
	//       modified to FS, GS, RS and US respectively.
	//  2) Characters with byte values 128 to 255 may also be encoded.
	//  3) 4 non-data function characters.
	//  4) 4 code set selection characters.
	//  5) 3 Start characters.
	//  6) 1 Stop character.
	barcode.setProcessTilde(true);
	
	// GS1-128 Unit of Measure, pixel, cm, or inch
	barcode.setUom(IBarcode.UOM_PIXEL);
	// GS1-128 barcode bar module width (X) in pixel
	barcode.setX(3f);
	// GS1-128 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:\\ean128.gif");


Java Barcode Generation Demo Source Codes:









OnBarcode is a market-leading provider of barcode imaging 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 comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding. 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.