I just ran into the same problem. I came up with a solution but I don't know if it is the right one. Maybe someone else can enlighten both of us. I'm still not sure why the setTotalWidth version doesn't work - mine was coming in around 467 pixels (probably has to do with margins to some degree).
float[] colWidths = {50, 150, 250}; table.setWidthPercentage(colWidths, doc.getPageSize()); Matt "Trevor Linton" <[EMAIL PROTECTED]> To: "iText" <[EMAIL PROTECTED]> Sent by: cc: [EMAIL PROTECTED] Subject: [iText-questions] Problems with PdfPTable absolte and relative width eforge.net 12/05/2003 02:37 PM I'm having difficulties where I use PdfPTable.setTotalWidth(float[]) to set the absolute width of all the cells in a table. I use this right after I create my object before any cells are added. However it doesn't apply the absolute width's to the cells, it simply sets the table width to ~~550 pixels then sets all of the cells inside relative to their values in teh float array, how can I get absolute widths on my PdfPCell's ? - Trevor Trevor Linton Senior Web Applications Developer Vérité Multimedia http://www.verite.com DVD * CD * Web * Print * Film * Sound ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions