/**
* Method that changes a String with Arabic characters into a String in which the ligatures are made.
* @param s the original String
* @param runDirection
* @param arabicOptions
* @return the String with the ligaturesc
*/
public static String ProcessLTR(String s, int runDirection, int arabicOptions) {
BidiLine bidi = new BidiLine();
bidi.AddChunk(new PdfChunk(new Chunk(s), null));
bidi.arabicOptions = arabicOptions;
bidi.GetParagraph(runDirection);
List<PdfChunk> arr = bidi.CreateArrayOfPdfChunks(0, bidi.totalTextLength - 1);
StringBuilder sb = new StringBuilder();
foreach (PdfChunk ck in arr) {
sb.Append(ck.ToString());
}
return sb.ToString();
}