Find all files with the extension .pdf in the current directory and its subdirectories, and replace all occurrences of "/old" with "/new" in each file.
find ~ -type f -name "*.pdf" -exec sed -i 's/\/old/\/new/g' {} \;