Tesseract is the core of OCRmyPDF which is free / open source. Installation instructions available here.
You can automate it using Hazel pretty easily. There is another discussion about this here.