Technique used - Brute Force
Requires Python 3.* and pikepdf
pip install pikepdfpython crack.py PATH_TO_PDF_FILE [-m MIN_DIGITS] [-n MAX_DIGITS]Example - If the password is between 3 to 5 digits long
python crack.py /home/elliot/Desktop/file.pdf -m 3 -n 5