Thanks for the quick and useful reply. I will try to use ColumnText instead and check.
1T3XT info wrote: > > Gau wrote: >> Yes. I do know the nbr of columns in advance. But I get to know the >> values to >> be put in the table one by one... > > With PdfPTable, there's no way to say: I want cell x1, y1 to contain > this, then cell x1, y2 to contain that, then cell x2, y1 something else. > You have to respect the left to right, top to bottom order. > > So if you insist on using PdfPTable, you'll have to keep all the > information in memory first (build an array, or use some collection > class) and use this array to fill the table in the right order. In this > case, it's a matter or programming and we're not here to explain you how > to do that. > > If you want to organize something "column wise", your best shot is to > use the ColumnText object instead of tables. > -- > This answer is provided by 1T3XT BVBA > http://www.1t3xt.com/ - http://www.1t3xt.info > > ------------------------------------------------------------------------------ > Check out the new SourceForge.net Marketplace. > It is the best place to buy or sell services for > just about anything Open Source. > http://p.sf.net/sfu/Xq1LFB > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > Buy the iText book: http://www.1t3xt.com/docs/book.php > > -- View this message in context: http://www.nabble.com/Column-wise-text-tp21375449p21394345.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
