Find and Move Corrupted PDF Files

ELI5 please!
I copy/paste

find . -iname '*.pdf' | while read -r f
  do
    if pdftotext "$f" - &> /dev/null; then 
        echo "$f" was ok;   
    else
        mv "$f" "$f.broken";
        echo "$f" is broken;   
    fi; 
done

Renamed to findmypdf.sh and made it executable.

Tried changing “mv “$f” “$f.broken”;” to mv “$f” “$/home/limo/corruptedpf/”; and “/home/limo/corruptedpf/corrupted.txt”

Not working!

But I could export list of files to a text file:

find . -name *.pdf > /home/limo/corruptedpf/corrupted.txt