Strangely, the method below always generates this Exception:
ExceptionConverter: java.lang.RuntimeException: The table width must be
greater than zero.
I've explicitly set the width. What's wrong?
public void onEndPage(PdfWriter writer, Document doc) {
PdfPTable table = new PdfPTable(2);
table.setWidthPercentage(100);
table.addCell(new PdfPCell(new Phrase("test1")));
table.addCell("test2");
table.writeSelectedRows(0, -1, 1, Util.toPts(200),
writer.getDirectContentUnder());
}
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions