Hi,
Help wanted from somebody who used? iText to create barcodes to meet
current USPS standards.
I tried the following piece of code but still can not pass barcode
certification. They say Function One code is missing.
Can anybody help with a hint?
Thanks a lot.
?????? /*
??? ??? USPS Publication 91, page 23 (29):
??????? UCC/EAN Code 128 (subset C is required).
??????? This symbology will be mandatory in 2004.
?????? */
?????? PdfContentByte cbh = _pwriter.getDirectContent();
?????? Barcode128 bc128 = new Barcode128();
?????? bc128.setCodeType(Barcode128.CODE128_UCC);
??????
?????? StringBuffer data = new StringBuffer("(");
?????? data.append(ship_number.substring(0,2));
?????? data.append(")");
?????? data.append(ship_number.substring(2));
?????? bc128.setCode(data.toString());
??? ?? //bc128.setCode(ship_number);?? //
Produces same result as above 'setCode(data.toString())'
??????
?????? bc128.setFont(null);
?????? bc128.setBarHeight(60);
?????? bc128.setX(1.0f);
?????? bc128.setN(2.75f);
?????? Image image128h = bc128.createImageWithBarcode(cbh, null, null);
Here is a sample of outcome.

Attachment: cid:part1.07060604.01010808@sympatico.ca

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions