Hi
I'm ned to itextPDF and struggling with table
PdfPTable table = new PdfPTable(5);
PdfPCell c1 = new PdfPCell(new Phrase("ITEM CODE"));
c1.setBackgroundColor(BaseColor.LIGHT_GRAY);
c1.setHorizontalAlignment(Element.ALIGN_CENTER);
table.addCell(c1);
When this table is displayed it is centered (nice) but only fills 60% of the
page width
How can I increase the table size to take up 95% to 100% of the page ?
and also to set each column width individually ?
Also what happens when the table is longer than the page does the code auto
break to the new page or do
I need to somehow watch for that?
Thanks in advance
------------------------------------------------------------------------------
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been
demonstrated beyond question. Learn why your peers are replacing JEE
containers with lightweight application servers - and what you can gain
from the move. http://p.sf.net/sfu/vmware-sfemails
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php