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[3];
// String txt = "333";
bytes[0] = bytes[1] = bytes[2] = (byte)3;
builder.setCodeText(bytes);
// builder.setCodeText(txt);
// set symbology type
builder.setSymbologyType(Symbology.Pharmacode);
// save the image to file
builder.save(strImagePath);