No, and it wouldn't make sense to have a generic case, there would be too
many options.
It's easy to do, though, provided that you know exactly want you want.
You'll see that knowing exactly what ones want is a lot more that just
saying "automatic setting of widths".
In general you read all the table fields, get the max width with
BaseFont.getWidthPoint() and construct the PdfPTable from there. The problem
is that the page doesn't extend forever and some choices will have to be
done like truncating, line splitting, table splitting if too wide, etc.

Best Regards,
Paulo Soares

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 30, 2003 13:21
Subject: [iText-questions] automatic setting of column widths


> I'm new to itext, and before we investigate further I was hoping someone
> could
> answer the following.  We have tabular data with headings that we need
> to
> create a pdf from.  The columns all contain data of different widths.
> Does i-
> text have a way of automatically handling setting the widths of each
> column
> appropriately to display the largest width data in the column (a given
> column
> has data of varying widths).  Or would we have to manage this ourselves?
>
> Regards
>
> Eric Kaplan
>
>
>
> ---------------------------------------------------
> IMP Webmail brought to you by Galaxy Networks, Inc.
> http://www.galaxy.net
>
>
> -------------------------------------------------------
> 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
>




-------------------------------------------------------
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