How can I read a PDF file written in Arabic using C# version 7.1?
I have tried this function:
private string GetTextFromPDF(String path)
{
StringBuilder text = new StringBuilder();
using (PdfReader reader = new PdfReader(path))
{
for (int i = 1; i <= reader.NumberOfPages; i++)
{
text.Append(PdfTextExtractor.GetTextFromPage(reader, i));
}
}
return text.ToString();
}
But it only works with English characters, any help?