I need to store 1772 bytes of data into a PDF417 codebar, but when I
try to generate the pdf I get the error:

java.lang.IndexOutOfBoundsException: The text is too big.
        at com.lowagie.text.pdf.BarcodePDF417.textCompaction(Unknown
Source)
        at com.lowagie.text.pdf.BarcodePDF417.assemble(Unknown Source)
        at com.lowagie.text.pdf.BarcodePDF417.paintCode(Unknown Source)
        at com.lowagie.text.pdf.BarcodePDF417.getImage(Unknown Source)
        at pdf417.PDF417iText.main(PDF417iText.java:77)

  In http://www.pdf417.com is written that the maximum capacity is one
kilobyte of data per label, but doing tests I succeeded storing up to
1197 bytes. I also read in the same page that using text compaction mode
you can go up to 1850 caracters, but I don't know how to select
compaction mode. I read on this list that you don't need to set it, that
it's automatic. My data is codified in b64, so I understand that you can
use text compaction mode.

  I also read that the number of columns can be from 1 to 30, but I can
only get 18 columns generating a 1197 bytes data PDF. How can I generate
a bigger barcode?

  How much is the maximum capacity that you can store in a label? What
can I do if I need to store more than the maximum? (for example 5Kb)
Using more than one label?

Thanx in advance,
Jorge Cambra


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.553 / Virus Database: 345 - Release Date: 18/12/2003
 


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to