Gerard:

Yes you can but you have to do it as percents of the total table size.  For
example, here is some code I use to create the table and set the total width
(from variables I defined) and the percent column widths (which have to
total 100):

PdfPTable table = new PdfPTable(15);
table.setTotalWidth(pageWidth - leftMargin - rightMargin);
int[] tableWidths = {7, 7, 8, 6, 7, 6, 6, 6, 8, 6, 7, 7, 7, 7, 5};
table.setWidths(tableWidths);

Hope this helps,
Kenny

----- Original Message -----
From: "Gerard BUNEL" <[EMAIL PROTECTED]>
To: "iText questions" <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 10:29 AM
Subject: [iText-questions] Table column sizes


> Hello,
> I'm looking for tools/library that could help generating PDF document
> Thus, I'm really interested in iText as it seems to give all needed
> functionalities
> I've just one question about tables:
>     I need to specify the exact size of each column in the tables.
>
>     Is it possible ? I can't find the way to do it in the JavaDoc API
> documentation
>
> Thanks,
> Gerard BUNEL
>
> --
> [EMAIL PROTECTED] - Atlantide - http://www.ago.fr/atlantide/
> Technopole Brest Iroise BP 80802 - 29608 Brest cedex - France -
> Tel. : +33 (0)2 98 05 43 21 - Fax. : +33 (0)2 98 05 20 34 - e-mail:
> [EMAIL PROTECTED]
> Centre Affaires Oberthur - 74D, rue de Paris -  35700 Rennes - France
> Tel. : +33 (0)2 99 84 15 84 - Fax : +33 (0)2 99 84 15 85 - e-mail:
> [EMAIL PROTECTED]
>
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to