Why do you use Barcode.CODE128_RAW? If that's what you really want to do
you have to provide the human readable code after the barcode with
\uffff as separator.

Paulo 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Julien T
> Sent: Monday, April 21, 2008 2:12 PM
> To: [email protected]
> Subject: [iText-questions] Barcodes and writing the code
> 
> 
> Hello,
> 
> I have to write some barcodes in my PDF files,
> I already placed and sized the barcodes... 
> But I have problems to write the code of the barcode
> 
> the part of my code for inserting Barcode is like this :
> 
> Barcode128 code128 = new Barcode128();
> code128.setCode(Datas);
> code128.setCodeType(Barcode.CODE128_RAW);
> com.lowagie.text.Image imgorderBarCode =
> code128.createImageWithBarcode(content,null,null);
> content.addImage(imgorderBarCode,Larg, 0, 0, Haut, X, Y);
> 
> 
> I tried to replace 
> com.lowagie.text.Image imgorderBarCode =
> code128.createImageWithBarcode(content,null,null);
> with
> com.lowagie.text.Image imgorderBarCode =
> code128.createImageWithBarcode(content,null,Color.black);
> 
> the text does not appear after the barcode ...
> Can someone tell me why ? and how to change this ? 
> 
> Thanks


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.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to