I'm trying to generate a Pharmacode barcode using the Java API. The calls appear to work and a file gets written when I do save, but the image generated looks like a dummy - the data is A123456. I have tried using setCodeText with both a string and a byte array.
It looks like Pharmacode generation support was added in 5.0, so I assume I am doing something wrong.
BarCodeBuilder builder = new BarCodeBuilder();
byte  bytes = new byte;
// String txt = "333";
bytes = bytes = bytes = (byte)3;
// set symbology type
// save the image to file