Start with this:

String s = "This is my string \u0035 with chars";
byte b[] = new byte[s.length()];
for (int k = 0; k < s.length(); ++k) {
    b[k] = (byte)s.chatAt(k);
}
bar417.setText(b);


----- Original Message ----- 
From: "Damian Breland" <[EMAIL PROTECTED]>
To: "Paulo Soares" <[EMAIL PROTECTED]>
Sent: Tuesday, February 15, 2005 7:26 PM
Subject: RE: [iText-questions] RE: iText PDF417 non-printing ASCII chars?


thanks Paulo,

Can I pass in the whole string with embedded \u0035 in when calling
setText(byte[]) ?

like: "This is my string \u0035 with chars"

Damian

  _____

From: Paulo Soares [mailto:[EMAIL PROTECTED]
Sent: Mon 2/14/2005 6:44 PM
To: Damian Breland; [email protected]
Subject: Re: [iText-questions] RE: iText PDF417 non-printing ASCII chars?



Use setText(byte[]). If you use setText(String) the chars below \u0020 won't
be converted.

----- Original Message -----
From: "Damian Breland" <[EMAIL PROTECTED]>
To: "Damian Breland" <[EMAIL PROTECTED]>;
<[email protected]>
Sent: Monday, February 14, 2005 10:15 PM
Subject: [iText-questions] RE: iText PDF417 non-printing ASCII chars?




________________________________

From: Damian Breland
Sent: Mon 2/14/2005 5:07 PM
To: [email protected]
Subject: iText PDF417 non-printing ASCII chars?



Hello,

I have a PDF417 barcode that I need to use non-printing ASCII chars for data
delimiters. ie: EOT (Hex 04), GS (Hex 1D), RS (Hex 1E). How can I pass these
into the pd.setText method?  I will have to encode the string before calling
any java functions.  Can I use  /u (/u035 for GS)?



This is very similar to what I am trying to do:

http://www.fedex.com/us/solutions/ppe/FedEx_Ground_Label_Layout_Specification.pdf



Thanks very much,
Damian






-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to