title: iTextSharp displaying Arabic
body: <p>I am using iTextSharp (5.5.9) to create a pdf page that has arabic and english characters, I am using PdfPTable to organize the text in the page. I was able to show the English characters, but no luck with the arabic ones.</p>
  
  <p>I am using MVC6 web api to load the document to the browser, he is the code:</p>
  
  <pre><code>[HttpGet]
      [Route("PrintReport")]
      public FileStreamResult GenerateReport(int id)
      {
   MemoryStream workStream = new MemoryStream();
          Document document = new Document(PageSize.A4, 25, 25, 30, 30);
          PdfWriter.GetInstance(document, workStream).CloseStream = false;
  
          document.Open();
          document.NewPage();
          string fontLoc = @"c:\windows\fonts\tahoma.ttf"; // make sure to have the correct path to the font file
          BaseFont bf = BaseFont.CreateFont(fontLoc, BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
          Font f = new Font(bf, 12);
  
          PdfPTable table = new PdfPTable(3);
          table.DefaultCell.NoWrap = false;
  
          table.WidthPercentage = 100;
          table.AddCell(getCell("Testing", PdfPCell.ALIGN_LEFT,f));
          table.AddCell(getCell("Text in the middle", PdfPCell.ALIGN_CENTER,f));
          PdfPCell cell = new PdfPCell(new Phrase("مرحبا", f));
          cell.NoWrap = false;
          cell.RunDirection = PdfWriter.RUN_DIRECTION_RTL;
          table.AddCell(cell);
          document.Add(table);
  
  
          document.Close();
  
          byte[] byteInfo = workStream.ToArray();
          workStream.Write(byteInfo, 0, byteInfo.Length);
          workStream.Position = 0;
  
          return new FileStreamResult(workStream, "application/pdf");
  
        }
  private PdfPCell getCell(string text, int alignment,Font f)
      {
          PdfPCell cell = new PdfPCell(new Phrase(text,f));
          cell.Padding = 0;
          cell.HorizontalAlignment = alignment;
          cell.Border = PdfPCell.NO_BORDER;
          return cell;
      }
  </code></pre>
  
  <p>But I am getting Question marks </p>