Java Data Matrix Barcode Generator

Generate, draw & print Data Matrix in Java applications with Java barcode generation component
Java Barcode Trial Package
Download
Java Barcode Trial Package
Barcode Java > Barcode in Java > 2D > Data Matrix
Java Data Matrix Barcode Generator - Benefits
To generate Data Matrix for Java Application

Available JDK

JDK 1.4.0 and above is supported.

Headless Java

Compatible with Headless Java which allows easy generation of Data Matrix barcode without graphic environment.

Servlet

Servlet with Apache Tomcat is compatible with all browsers and easy to embed in HTML as an image with the tag.

Rich Barcode properties

  • Easy to customize Data Matrix barcode sizing by adjusting Data Matrix module size
  • Simple to output high-quality Data Matrix barcode images with customized color, resolution and orientation

Developer License

Royalty-free, perpetual license with source code.

Support ISO Standard

Compatible with ISO / IEC 16388 (2nd edition 2007-05-15)
Java Data Matrix Barcode Generator --- Overview
Java Data Matrix Generator is one function of Java barcode generator, which is a professional barcode generating component for making Data Matrix and another two 2D barcodes in Java applications. Orientation of each Data Matrix can be changed among 0, 90, 180 or 270 degrees.

Data Matrix Introduction

Data Matrix, a 2 dimensional barcode symbology, was designed by Siemens to encode a great number of information within a small space. It is made up of data regions with black and white modules and “cells” in a square or rectangular pattern and is widely used in the marking of small items such as integrated circuits and printed circuit boards.
Java Data Matrix symbology encodes:
  • all 128 characters of ASCII
  • values 128-255 in accordance with ISO 8859-1. There are referred to as extended ASCII.
Java Data Matrix Generator --- Generating Barcode

Generate Data Matrix in Java class by customizing barcode properties.

// Create Java Data Matrix object
Data Matrix barcode = new DataMatrix ();
// Set Data Matrix data text to encode
barcode.setData("87654321");
// Generate Data Matrix & print into Graphics2D object
barcode.drawBarcode("Java Graphics2D object");
// Generate Data Matrix & encode into GIF format
barcode.drawBarcode("C://barcode-DataMatrix.gif");
// Generate Data Matrix & encode into JPEG format
barcode.drawBarcode("C://barcode-DataMatrix.jpg");

Generate & encode Data Matrix to EPS by changing the concerned values.

// Create Java Data Matrix object
Codbar barcode = new DataMatrix();
// Set Data Matrix data text to encode
barcode.setData("87654321");
// Generate Data Matrix & encode into EPS format
barcode.drawBarcode2EPS("C://barcode-DataMatrix.eps");

Generate & encode Data Matrix in html or jsp pages.

Add barcode folder and its contents from demo package to Apache Tomcat.
Start Apache Tomcat, go to http://YourDomain:Port/barcode/barcode?DATA=87654321&TYPE=DATAMATRIX
Add an image tag (img) into your target page. Like following one,

Customize the width and height of generated Data Matrix image

You can choose to set the values of the barcodeWidth and barcodeHeight properties or set Data Matrix (bar module width) and Y (bar module height) values.
Java Data Matrix Generator --- Setting Data Matrix Properties

  • Data Matrix Basic Settings
  • Data Matrix Size Settings
  • Data Matrix Special Settings
  • Data Matrix Text Settings
  • Data Matrix Color Settings
  • Data Matrix Image Settings