Hi all,

First question:
I can create a PdfPTable specifying the number of columns ok, but next I 
haven't found a method to retrieve the columns number, is it possible that 
there isn't such a method?

Second question:

This code:

...
PdfPTable datatable2 = new PdfPTable(1);
                        
PdfPCell itextCell = new PdfPCell(new Paragraph("Ah yeah"));
datatable2.addCell(itextCell);
datatable2.setHeaderRows(1);

document.add(datatable2);  

produces this:
ExceptionConverter: java.io.IOException: The document has no pages.

The problem is that setHeaderRows(1) which declares that in that table there is 
a header of one row, correct but then the table isn't generated, why?

Why doesn't a table being generated if it has only a header?

Best regards,

Raffaele


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to