OK, Bruno. I see.
Thanks for the extra explanation.
Keep up the good work!
Geert
> >Hi Paulo,
> >
> >
> >
> >>You can know the size the table will have by setting the setTotalWidth()
> >>but you'll have to calculate the effective space by subtracting the
> >>margins from the page size.
> >>
> >>
> >I'm not interested in the WIDTH
> >
> You probably aren't, but iText is.
> iText can't calculate the height if it doesn't know the width.
>
> > but in the LENGTH a table will have,
> >
> >
> What is the length needed for a bottle to contain 1 liter water?
> You can only answer this question, if you know the diameter of the
> bottle.
> The same applies here: tell iText about the width, and it will be able
> to calculate the height.
> For instance using:
> float rowheight = 0;
> for (int i = 0; i < numrows; i++) {
> rowheight += table.getRowHeight(i);
> }
> br,
> Bruno
--
http://www.fastmail.fm - Access all of your messages and folders
wherever you are
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions