There are various libraries for extracting text from PDF files. This is a little less than a βsearch,β but it should be easy to do.
For Ruby, try the PDF :: Toolkit .
For Python pyPdf :
pdf = pyPdf.PdfFileReader(file(path, "rb")) content = pdf.getPage(1).extractText()
source share