Hi, I am using iText Version: 2.1.3
Problem Description: In my application, user is provided a configurable option to select data columns which he wants to see on UI in form of a table. (refer the attachment 'PDFExportDocument.jpg' for visual clarity). Since it is a configurable view, that means the number of columns in the view varies (it can from 10 columns to 100+ columns). http://www.nabble.com/file/p23566224/ExamplePDFTable.jpg Not only the columns, but also the data records shows against this view can vary (that means number of rows). I need to write a PDF export utility to generate a pdf document against this view. I was going through the itext tutorial <http://itextdocs.lowagie.com/tutorial> where I saw Split Table example. I tried this example for my problem but when I have more rows (data) it doesn't split the table automatically to another page. I can explicitly mention the number of columns on one page but it is difficult to mention the number of rows per page. table.writeSelectedRows(0, 5, 0, -1, 50, 650, cb); Number of rows (data) per page depends upon the content in the cell. If the content is large (like comments or remarks columns) then 4-5 rows can only fit on one page, if content is small 7-8 rows can fit on one page. Can anyone suggest me some approach or any sample code to implement this requirement. I appreciate all your help/time. http://www.nabble.com/file/p23566224/PDFExportDocument.jpg PDFExportDocument.jpg Abhishek -- View this message in context: http://www.nabble.com/PDFPTable-with-variable-number-of-columns-and-rows-tp23566224p23566224.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ 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 Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
