chris0 wrote: > Hi, > > I have a table with cells set up like this: > > -- > Paragraph p = new Paragraph(content,font); > p.setLeading(30); > PdfPCell c = new PdfPCell(p); > -- > > My problem is that the paragraph leading is ignored. Can someone please tell > me how to set the paragraph leading when inside a table cell? It works > perfectly when not inside a cell.
Google for the difference between "text mode" and "composite mode". You are using "text mode": the leading of the cell is taken into account; the leading of the paragraph is ignored. If you use "composite mode", it's the other way round. Try: PdfPCell c = new PdfPCell(); c.addElement(p); -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php