BoxLang 🚀 A New JVM Dynamic Language Learn More...
A simple wrapper around Barcode4J - a Java library for creating Barcodes
box install cfbarcode4j
// returns a cfimage
image = wirebox.getInstance( dsl = "Barcode@cfbarcode4j" ).code128().generate('Hello World!');
// writes an image to the browser
wirebox.getInstance( dsl = "Barcode@cfbarcode4j" ).code128().toImage('Hello Again!');
To change any of the attributes, use the set methods before calling generate or toImage.
image = wirebox.getInstance( dsl = "Barcode@cfbarcode4j" ).code128().setFontSize(1).generate('Hello World!');
$
box install CFBarcode4J