I have tried to generate the Barcode128
barcode to be placed on label and usually labels are less width. I am wondering that 3 digit(100)
String barcode width is larger than 4 digit(1001)
string barcode. 3 digit barcode
should be less than the 4 digit barcode right? I have verified in online barcode generation 3 digit barcode
width is less than the 4 digit barcode width where as iText api takes width more for 3 digit
string compared to 4 digit string
.
Could anybody please let us know the reason for this and how to make 3 digit barcode shorter than the 4 digit barcode?
Online barcode generator URL here
Code sample used to generate the barcode.
Barcode128 code128 = new Barcode128();
code128.setCode(myText);
Image myBarCodeImage128 = code128.createImageWithBarcode(contentByte,
null, null);
then image is added to pdf document.