Install OCRmyPDF using Python | Convert Scanned Image PDF to Editable Text

Here is how you can install OCRmyPDF on your computer. With OCRmyPDF you can convert scanned images into exact same PDFs but you can as well copy the text. Now in order to do that, download and install Anaconda from the Anaconda official website. Once Anaconda is installed, open the Anaconda Prompt from the Start menu. And now create a new Python environment by typing conda create –name OCRPDF python=3.12. After the env is created, activate by the command using conda activate OCRPDF. To install OCRmyPDF, simply type pip install ocrmypdf and hit enter.

In addition to OCRmyPDF, you need to install two essential software programs: Tesseract and GhostPDL. Scroll down the OCRmyPDF installation page to download the Tesseract installer, complete the installation steps, and then download and install the GhostPDL EXE file for your Windows version. After completing these installations, you are ready to use OCRmyPDF. Make sure all installations are correctly done for the application to work smoothly.

To use OCRmyPDF, open the Anaconda Prompt, navigate to the folder containing your PDF file using the cd C:/your_folder_name, and run the OCR command ocrmypdf input.pdf output.pdf. Make sure to replace the input.pdf file name to your PDF file. For PDF converted from docs you will have to use –force-ocr option.

We hope this video is useful to you. Thank you very much.






SUBSCRIBE

SUBSCRIBE

Welcome to Hey, Let's Learn Something!

Please sign up here to receive the latest updates on our blogs, tutorials and download section :)

Thank you for subscribing :)