I have tried lots of softwares for converting pdf containing Persian language to text, but non of them works.
By the way if you search google for pdf files that contain a specific Persian word it does not return accurate results as well, However I'm not sure about Arabic language. So I guess this is an open challenge at least for Persian language.