ocr test method added with automatic sample pdf