My application is developed in two different versions of English and Arabic. I created a pdf table in iText with rowspan and colspan, which works fine in the English version, but doesn't work in the Arabic version of rowspan. when i use setRunDirection (3) to put arabic text in my table, setRowspan (2) does not work.
please tell me how rowspan is set here.
please help me solve this problem.
thanks
This is part of the code for the size column of table 2 and rowspan 2.
BaseFont base=BaseFont.createFont("C:/Windows/Font/arial.ttf",BaseFont.IDENTITY_H,BaseFont.EMBEDDED); Font sourceFont= new Font(base, 9,Font.NORMAL,Color.RED); PdfPTable tab1=new PdfPTable(2); tab1.setRunDirection(3);//**(if you comment this line it will work)** PdfPCell cells; cells=new PdfPCell(new Paragraph("arabic text", sourceFont)); cells.setRowspan(2); tab1.addCell(cells); cells=new PdfPCell(new Paragraph("arabic text", sourceFont)); tab1.addCell(cells); cells=new PdfPCell(new Paragraph("arabic text", sourceFont)); tab1.addCell(cells);
source share