shipBarCode.setCode("(8100)030111");

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <itext-questions@lists.sourceforge.net>
Sent: Wednesday, October 19, 2005 10:45 PM
Subject: [iText-questions] EAC 128 UCC


  

I am trying to generate a UCC/EAN 128 Coupon Code.  The code is attached
below.  The vendor sent me the attached .eps file.  I am trying to
regenerate the barcode in the PDF file using Barcode128.  I've attached
my generated PDF file.  However, the generated 128 barcode does not look
like the original eps.  What am I doing wrong?

 

   BarcodeEAN codeEAN = new BarcodeEAN();

               codeEAN.setCodeType(Barcode.UPCA);

               codeEAN.setBarHeight(40);

               codeEAN.setGuardBars(true);

               codeEAN.setCode("525274992016");

               Image imageEAN = codeEAN.createImageWithBarcode(cb, null,
null);

            //table.addCell(new Phrase(new Chunk(imageEAN, 0, 0)));

            

            //Add UCC/EAN 128

               Barcode128 shipBarCode = new Barcode128();

               shipBarCode.setCodeType(Barcode128.CODE128_UCC);

               shipBarCode.setBarHeight(40);

               shipBarCode.setCode("81000 30111");

               Image img = shipBarCode.createImageWithBarcode(cb, null,
null);

               //table.addCell(new Phrase(new Chunk(img, 0, 0)));


                                 

               document.add(new Chunk(imageEAN, 0, 0));  

               document.add(new Chunk(img, 0, 0)); 




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to