Salman Jameel Sunny Salman Jameel Sunny - 5 months ago 60
C# Question

Is there any pdf library that supports arabic font?

I am working on final project for my bachelors degree. Well that a stemmer (Urdu Stemmer) Urdu is the national language of Pakistan.We write Urdu in Arabic font.I am trying to save the output in a PDF file. I was using itextsharp library but its not printing anything because it doesn't support Arabic font. So can anyone of you suggest me any other library that supports Arabic font.

private void button1_Click(object sender, EventArgs e)
string t = Stemtxtbox.Text;
Document document = new Document();
PdfWriter.GetInstance(document, new FileStream("E:/a.pdf", FileMode.Create));
Paragraph p = new Paragraph(t);


You need to call PdfPTable.RunDirection = PdfWriter.RUN_DIRECTION_RTL to indicate that you want to use the bidirectional algorithm. There's a similar property in ColumnText.