i´ve tried to convert a non searchable PDF to a searchable one. Therefore i tried the code mentioned [here](http://www.aspose.com/docs/x/I4B-GQ).
The text is returned by tesseract, unfortunately this exception is raised when the callback returns:
Please share the resource PDF document causing this problem, so that we can test the scenario in our environment. We are sorry for this inconvenience.
Now concerning to using Aspose.OCR, this API provides the feature to OCR text over image and once you have performed the OCR, you will have to created PDF from scratch using Aspose.Pdf for Java.
I have tested the scenario and have managed to reproduce same problem. For the sake of correction, I have logged it as PDFNEWJAVA-35697 in our issue tracking system. We will further look into the details of this problem and will keep you posted on the status of correction. Please be patient and spare us little time. We are sorry for this inconvenience.
As we recently have noticed earlier reported issue, so its pending for review and is not yet resolved. However the product team will surely consider investigating/fixing it as per development schedule and as soon as we have some definite updates regarding its resolution, we will let you know. Please be patient and spare us little time. We are sorry for this delay and inconvenience.