Just got in, very tired, so sorry if I am answering this wrong... Take the borders off everything with the Rectangle.NoBorder (I think). (Everything = PdfPCells, The PdfPTable, and the nested PdfPTable(s)).
Also, don't forget to get rid of the pad (if you want to) from the all the tables your using, not just the PdfPCells. Matthew -----Original Message----- From: fhomasp [mailto:[email protected]] Sent: 08 June 2010 17:37 To: [email protected] Subject: Re: [iText-questions] Paragraph negative spacing weirdness inPdfPTables I found that disabling the line: " cell.setPaddingTop(-3); " resolves the issue, but then the padding at the top is too high for me. Moreover... I wanted to do the counting of the cellheight to an actual Element being used directly in the main table, so initially I added the PdfPCells to a sub PfdPTable, count its height and add the tables to the main table. However that results in the problem of having borders around the subtable, eventhough I set the cells not to have borders. I didn't find a means of removing them, as they seem to be associated with the tables. So I wrapped the cells in dummy tables with the same characteristics of the main table, count the height of the dummy table and add the cell to the main table instead of the dummy table. How should I resolve this, because as I'm told previously, that's not very robust coding. Thanks -- View this message in context: http://itext-general.2136553.n4.nabble.com/Paragraph-negative-spacing-weirdness-in-PdfPTables-tp2245863p2247702.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/ Land Registry's House Price Index is now live. www.landregistry.gov.uk If you have received this e-mail and it was not intended for you, please let us know, and then delete it. Please treat our communications in confidence, as you would expect us to treat yours. Land Registry checks all mail and attachments for known viruses, however, you are advised that you open any attachments at your own risk. The original of this email was scanned for viruses by the Government Secure Intranet virus scanning service supplied by Cable&Wireless Worldwide in partnership with MessageLabs. (CCTM Certificate Number 2009/09/0052.) On leaving the GSi this email was certified virus free. Communications via the GSi may be automatically logged, monitored and/or recorded for legal purposes. ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ 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/
