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:
Result:

Params:
- type="codabar"
- msg="12345670"
- mw="0.15"
- height="8"
- fmt="png"
