PDF image analysis and selective text extraction using tesseract