Op 13/08/2012 10:51, moulshree joshi schreef: > I am trying to add variable height pdftable to pdfcell. Whenever the > table is larger than pdpfpcell, it is being added successfully. But > whenever the table is smaller than pdfpcell (when the table has only > one row and the font size is smaller), the table occupies the top half > of the pdfpcell. Please let me know how to fit this table to pdfpcell.
Code nor image are clear to me, but some general advice: - when nesting tables, always set the width percentage of the inner table to 100%. - try using setExtendLastRow(true) to make sure the final row is extended. If all else fails: don't nest tables, but use colspan and rowspan (a recent iText version is required if you want to avoid bugs that have been fixed). ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ 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
