I'm creating a (simple) table that has two cells. The left cell is right
justified; the right cell is left justified. I want the output (in
fixed-width ASCII) to look something like this...

 Chocolate: good
   Vanilla: better
Strawberry: best

So far so good. The problem is that I am used to HTML tables only using as
much space as they need to accommodate the elements. The output I get from
iText looks like this...

 Chocolate:           good
   Vanilla:           better
Strawberry:           best

...because of the arbitrary cell width sizes. Now I could set the width of
the table but the problem is that the table will be dynamically generated
and I do not know in advance what the data will be. I have tried to get the
width of the cells so that I can add them together and set the table width,
but the methods always return "0.0" or null.

Any ideas?

S     |\_._/|     .-.
E     | o o |_   / /
S   _.(  T  ) `./ /
---(((-`-(((---------

Scott Edward Skinner
Systems Developer
Regeneron Pharmaceuticals




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to