I have found a solution for my problem which is so simple that I first
didn't
thought about it.
I simply added an additional row to table (t2). So my form looks like this:
----------------------------------------
| ----------- ------------------- |
| |xxxxxx| | xxxxx | label| |
| ----------- -------------------- |
| |label | | | | |
| ----------- -------------------- |
----------------------------------------
table t2 doesn't get stretched anymore because the extra row uses this
space.
If i don't insert table t1 then the two rows are not visible since they are
empty and i set the padding to 0. If somebody has a better solution,
please tell me.
From: "M 501" <[EMAIL PROTECTED]>
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Form with nested tables
Date: Tue, 17 Jan 2006 20:48:16 +0000
Hello,
I am trying to generate a pdf using acro - form elements. To position the
form elements I am using tables just like the registration form example.
However, the problem is that I have two kinds of textfield elements, on
with the label on the right side like this:
XXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX label
XXXXXXXXXXXXXXXX
and one with the label on the bottom:
XXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX
label
So I use two kinds of tables, a table with one column (t1) and one table
with two columns (t2) to reach this.
The problem is that I need to position this two textfield beside each
other. So I created another table (t3) where I added theese tables as
nested tables. The problem is that table (t2) gets stretched. So the result
looks like this:
(t1) (t2)
XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX label
XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXX
label XXXXXXXXXXXXXXXX
I hope you know what I mean. As you can see the textfield column of table
(t2) gets stretched to fit the row since the text field ist the complete
column. (I think the label - row gets stretched too but I am not sure.
Since the align of the label is correct, this would be no problem). I tried
to setFixedHeigth on both columns of (t2 ) but it has no effect.
If I use setFixedHeight on the cell of table (t3) then the size both tables
(t1 and t2) is reduced and I loose the label of (t1). I have also made
some tries with setNoWrap but I didn't get it working.
Can somebody tell me the correct code?
Regards
Peter
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions