How to Detect If a PDF Needs OCR in Python | PreOCR