You must pass the 8 digits to the method. If you want to calculate the
checksum use barcodeEAN.calculateEANParity(), see the javadoc. An example:
BarcodeEAN codeEAN = new BarcodeEAN();
codeEAN.setCodeType(codeEAN.EAN8);
codeEAN.setCode(55123457);
Image imageEAN = codeEAN.createImageWithBarcode(cb, null, null);
Best Regards,
Paulo Soares
-Original Message-
From: Dogan, Bulent [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, June 04, 2002 17:33
To: '[EMAIL PROTECTED]'
Subject: [iText-questions] barcodeEAN 8 checksum digit calculation
I have tried to use the barcodeEAN class to generate barcodes in type EAN
8.
I have tried to pass in codes without the checksum digit and I kept on
getting the ExceptionConverter exception. I have even set the
setGenerateChecksum() to true. This didn't help either. Any suggestions?
Bulent
___
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions
___
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions