Requirements :
Kali Linux Internet
git clone https://github.com/openwall/john cd john cd run
./pdf2john.pl /home/kali/yourpdfpath.pdf> /home/kali/Desktop/extactedpath.txt
cd /home/kali/Desktop/ john --format=pdf extractedpath.txt