I found a small bug in HTML table presentation when I specified columns widths. It's easy to reproduce. Here is an xhtml saple. In resulting PDF all collumns have the same width.
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body bottommargin="36" leftmargin="10" rightmargin="10" topmargin="36"> <table align="center" border="1" bordercolor="#0000ff" cellpadding="1" cellspacing="1" width="100%" cols="3"> <colgroup span="3"></colgroup> <tr> <th align="left" colspan="1" valign="top" border="0" width="20%">Status</th> <th align="left" colspan="1" valign="top" border="0" width="60%">Equipment</th> <th align="left" colspan="1" valign="top" border="0" width="20%">Test</th> </tr> </table> </body> </html> The fix is very simple: in class SAXiTextHandler in method public void handleEndingTags(String name) else if (cell.colspan() == 1 && width.endsWith("%")) { try { cellWidths[j] = Float.valueOf(width.substring(0, width.length() - 1) + "f").floatValue(); cellNulls[j] = false; // my modification total += cellWidths[j]; } catch(Exception e) { // empty on purpose } Regards, Sergey Vlasov ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
