Redoing PDF OCR Issue

If you don’t mind having the password striped altogether you could use qpdf with your Hazel rule.

First you’ll need to install qpdf via Homebrew.

After that, just add a Do shell script with

qpdf --decrypt —password=YOUR_PASSWORD --replace-input $1

Remember to place this command before your OCR command.