> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Slava Zinkovskiy
> Sent: Friday, June 23, 2006 3:49 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] UCC/EAN Code 128 bar code,
> USPS standard
>
> Sorry, false alarm. Barcode is OK.
>
> Just few remarks to make sure I am heading in the right
> direction (I am comletely new to barcodes and iText library)
>
> 1). Data string was "9101806921375100000001". Enclosing AI in
> brackets, like "(91)01806921375100000001", has no effect on
> barcode . I guess it is because there is only one AI in the
> string. Is this correct?
>
Yes.
> 2). So far I found no way to explicitly control character
> subsets (A, B, C). Am I right that iText optimizes to get
> shortest barcode? Can I encode numeric only data in A or B
> subsets if I need to by some weird requirements?
>
You have the option of using CODE128_RAW for those wierd requirements.
Paulo
> Thanks
>
>
>
> Paulo Soares wrote:
>
> FNC1 is there otherwise it wouldn't be an UCC code.
> What exactly are you setting in setCode()?
>
> Paulo
>
>
> ________________________________
>
> From:
> [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Slava Zinkovskiy
> Sent: Friday, June 23, 2006 12:28 AM
> To: [email protected]
> Subject: [iText-questions] UCC/EAN Code 128 bar
> code, USPS standard
>
>
> 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.
>
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions