Re: How to put Start / End character to Code 128 A/B/C barcode
Jeremias Maerki <[email protected]> Mon, 08 Sep 2003 17:33:16 +0200
| Newsgroups | gmane.comp.krysalis.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Sorry for the late response. As you may have read I've been away on holidays. The Code 128 implementation currently tries to compute the optimal characters sets (including character set changes) for a message. You don't have a way to directly control the character sets being used. Do you have a use case where you need to have exact control over the characters being encoded? If yes, you could try to experiment with the latest code from CVS which has been improved considerably over the version in the 0.9 release. I've introduced a Code128Encoder interface which would allow you to plug-in your own implementation for encoding a message (including character set control characters). The default implementation of the interface (DefaultCode128Encoder) selects the appropriate character sets automatically. Example: "Code128" will be encoded as "[Start B]Code128" plus the check digit will be added by Krysalis Barcode. As I haven't run into any other use cases and only found one check digit algorithm I've hardwired the check digit generation into the code. Making this configurable as with most other symbologies wouldn't be a great deal of work I think. I hope this helps. On 05.09.2003 19:56:47 Chiu Chong Kan wrote: > I'm trying to generate Code 128 barcode in a PDF document using XSL-FP + > Krysalis Barcode. I can generate barcode in Code 128 RAW format with no > problem. However, for Code 128 Set A/B/C, the barcode has start/end > character and check digit attached. Is it possible to do in Krysalis ? > For example, when I put a leading character ascii(0204) to my barcode > string in XML, Krysalis simply returns invalid character. Any idea ? > Also, should I calculate the check digit myself or Krysalis can do it for > me ? Thanks in advance. Jeremias Maerki ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf