Find all files with the extension .pdf in the current directory and its subdirectories, and search for the word "ERROR" in each of them, then list the names of the files that contain the word "ERROR".
find ~ -name '*.pdf' -exec grep -l 'ERROR' {} +