https://products.aspose.app/pdf/searchable
so that, I think, it possible to extend it to Devanagari on your local with Tesseract and Aspose.Pdf with C# code snippet:
CallBackGetHocr recognizeText = (System.Drawing.Image img) => { string tmpFile = Path.Combine(outputFolder, Path.GetFileName(Path.GetTempFileName())); using System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(img); bmp.Save(tmpFile);
string pathTempFile = $"\"{tmpFile}\"";
string arguments = $"{pathTempFile} {pathTempFile} --oem 1 -l {lang} hocr";
System.Diagnostics.ProcessStartInfo psi =
new System.Diagnostics.ProcessStartInfo("tesseract", arguments);
using (System.Diagnostics.Process p = new System.Diagnostics.Process())
{
p.StartInfo = psi;
p.Start(); p.WaitForExit();
}
return File.ReadAllText($"{tmpFile}.hocr");
};
new Aspose.Pdf.Document("my_Devanagari_scan.pdf").Convert(recognizeText);
(disclaimer: I'm a founder)