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));
cell.setColspan(3);
cell.setPaddingRight(15f);
cell.setBorder(PdfPCell.NO_BORDER);
if (rs1.getString(13).equalsIgnoreCase("1")) {
cell.setRunDirection(PdfWriter.RUN_DIRECTION_RTL);
}
table.addCell(cell);
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));
When we changed the code to below, the line spacing is working but the
arabic text is not displaying RTL.
Paragraph para= new Paragraph(15f,rs1.getString(6), font);
cell = new PdfPCell();
cell.addElement(para);
cell.setColspan(3);
cell.setPaddingRight(15f);
cell.setBorder(PdfPCell.NO_BORDER);
if (rs1.getString(13).equalsIgnoreCase("1")) {
cell.setRunDirection(PdfWriter.RUN_DIRECTION_RTL);
}
table.addCell(cell);
How do I resolve the issue with the line spacing and also the text
direction.
Thanks in advance.
Navin
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/line-spacing-not-working-tp4655725.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
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