Find all files with the extension ".pdf" in the current directory and its subdirectories, and compress them using gzip with the highest compression level (9) in parallel with 4 processes.
find ~ -name "*.pdf" | xargs -I {} -P 4 gzip -9 {}