I want to convert a scanned pdf file to text using ocr i tried this code :
!ocrmypdf F4.pdf output.pdf
with pdfplumber.open(\'output.