title: Convert Non-Searchable Pdf to Searchable Pdf in Windows Python
body: <p>Need a solution to convert a PDF file where every page is image and a  page can either contains text, table or combination of both to a searchable pdf.</p>
  
  <p>I have used ABBY FineReader Online which is doing the job perfectly well but I am looking for a solution which can be achieved via <strong>Windows Python</strong></p>
  
  <p>I have done detailed analysis and below are the links which came close to what I want but not exactly:</p>
  
  <p><a href="https://stackoverflow.com/questions/24848808/scanned-image-pdf-to-searchable-image-pdf">Scanned Image/PDF to Searchable Image/PDF</a></p>
  
  <p>It is telling to use Ghost script to convert it 1st to image and then it does directly convert to text. I don't believe tesseract converts non-searchable to searchable PDF's. </p>
  
  <p><a href="https://stackoverflow.com/questions/9106959/converting-searchable-pdf-to-a-non-searchable-pdf">Converting searchable PDF to a non-searchable PDF</a></p>
  
  <p>The above solution helps in reverse i.e. converting searchable to non-searchable. Also I think these are valid in Ubuntu/Linux/MacOS.</p>
  
  <p>Can someone please help in telling what should be the Python code for achieving non-searchable to searchable in <strong>Windows Python</strong>? </p>
  
  <hr>
  
  <p><strong>UPDATE 1</strong></p>
  
  <p>I have got the desired result with Asprise Web Ocr. Below is the link and code:</p>
  
  <p><a href="https://asprise.com/royalty-free-library/python-ocr-api-overview.html" rel="noreferrer">https://asprise.com/royalty-free-library/python-ocr-api-overview.html</a></p>
  
  <p><strong>I am looking for a solution which can be done through Windows Python libraries only as</strong></p>
  
  <ol>
  <li>Need not to pay subscription costs in future </li>
  <li>I need to convert thousands of documents daily and it will be cumbersome to upload one to API and then download and so on.</li>
  </ol>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>I know the solution of converting non-searchable pdf directly to text. But I am looking is their any way to convert non-searchable to searchable PDF. I have the code for converting the PDF to text using PyPDF2.</p>