On Sun, 29 Jul 2012 04:47:17 -0700 (PDT), navin_162 <[email protected]> wrote: > Hi All, > > I have a document which contains a table, wit cell containing data. The > data > can also contain arabic text. > > We are using the below the below code: > cell = new PdfPCell(new Paragraph(rs1.getString(6), > font));
This means you're working in text mode, not in composite mode. > We wanted to increase the spacing between the lines, so we replaced the > first line with the below line, but the spacing did not change. > > cell = new PdfPCell(new Paragraph(20f, rs1.getString(6), > font)); You're changing the leading as if you were working in composite mode. As described in the documentation and as repeatedly answered: please don't mix text mode and composite mode! In text mode, you set the leading at the cell-level (using cell.setLeading(leading)); all the leadings of the content will be ignored. In composite mode, the leading set at the cell-level will be ignored in favor of the leading of the elements added to the cell. ------------------------------------------------------------------------------ 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
