Java RM4SCC Generator Library SDK Integration & Developer Guide
Generate barcode RM4SCC images in Java class, Servlet, JSP, J2EE with complete sample Java source code
- Generate, create RM4SCC in Java applications
- Easy to install & integrate barcode RM4SCC generation library SDK into Java developments
- Generate over 30 linear, 2d barcode images in Java including
Java QR Code,
Java Data Matrix,
Java OneCode,
Java PLANET,
Java POSTNET
- Generate RM4SCC images in Java class, Java Bean, Swing, Applet, J2SE
- Create barcode RM4SCC in Java web application, including Servlet, JSP, EJB, Tomcat, JBoss, J2EE
- Create & Print RM4SCC barcode in BIRT reports designer and BIRT report runtime
- Generate & Draw RM4SCC in Jasper Reports, iReport
- Encode RM4SCC images to jpeg, eps, gif, png, tiff, bitmap files in Java program
Index
Java RM4SCC Generator Introduction
RM4SCC, also known as Royal Mail 4-state Customer Code, U.K. Royal Mail, is height-modulated barcode symbology for use in automated mail sort process.
Generate and create RM4SCC barcode using Java is one of the functions in OnBarcode's
Barcode for Java Generating Java library (jar file), which supports
generating & printing RM4SCC and 20+ other linear & 2D bar codes in Java application and software.
RM4SCC Generator and Reader library, SDK & application
RM4SCC Generator components and software include
.NET RM4SCC Generator,
C# RM4SCC Generator,
VB.NET RM4SCC Generator,
ASP.NET RM4SCC Generator,
RM4SCC Generator.
This document is providing a detailed Java sample source code about generating RM4SCC barcodes in Java class using
Java Barcode generation component.
Complete RM4SCC custmoization settings is included in
Java RM4SCC generating guide.
Generate RM4SCC Barcodes in Java
Generating RM4SCC barcode in Java class example:
RM4SCC barcode = new RM4SCC();
/*
RM4SCC Valid data char set:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9 (Digits)
A - Z (Uppercase letters)
*/
barcode.setData("123");
// 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:\\rm4scc.gif");
Java Barcode Generation Demo Source Codes: