Here I created a CFC wrapper from the previous code for creating a datamarix barcode with barcode4j. You can output EPS, PNG and JPG files, but EPS is the best format if you are planning to use it inside PDF, it can reduce printing time if you are using a digital printer. Even though you can create JPG output, it can seriously affect the reading part. In other words, using JPG is not an very good idea.
(more..)