Login required
Download

Barcode4j Plugin

(0)
Author(s): tomeq
Current Release: 0.1
Grails Version: 1.1.1 > *
Tags functionality
grails install-plugin barcode4j

Barcode4j Plugin

This plugin provides a taglib that displays barcode. It bases on barcode4j library (for more information please see: http://barcode4j.sourceforge.net).

Usage

The simple example of usage barcode4j taglib: <g:barcode4j fmt="png" />

It renders an example barcode as png image with example '123456' string. This tag allows an usage of the same parameters like barcode4j implementation:

  • fmt: format of generated bardcode (e.g. png, jpeg, svg) - required
  • type:type of barcode symbologies (e.g. codabar,code128,ean-8)
  • message: number sequence to generate barcode (e.g. 123456)
  • height: height of barcode
  • wide-factor:
  • module-width:
The valid values of parameters depend on used type of barcode. To check rules, please see the barcode4j documentation.

Example of usage

Params:

  • msg="7654312"
  • fmt="png"
Result:

Params:

  • type="codabar"
  • msg="12345670"
  • mw="0.15"
  • height="8"
  • fmt="png"