Установите пакет pdfgrep
sudo apt-get install pdfgrep
, затем используйте команду:
find /path -iname '*.pdf' -exec pdfgrep pattern {} +