The following should list the files matching the pattern:
for i in `find . -type f -name "*.pdf"`; do
pdftotext "${i}" - | grep -lq "search-word" && echo $i;
done
The -q
option for grep prevents any output to STDOUT. -l
lists matching files.