OCR for scanned PDF using OCRmyPDF
You can use the following package for OCR.
https://github.com/jbarlow83/OCRmyPDF