title: Multiple errors occurring when I try to convert pdf in jpeg
body: <p>I need to convert .pdf file to .jpeg file to do OCR of the text.
  I found this code:</p>
  <pre><code>from pdf2image import convert_from_path
  pages = convert_from_path('img732.pdf', 500)
  for page in pages:
    page.save('out.jpg', 'JPEG')
  </code></pre>
  <p>And I got this error:</p>
  <pre><code>Traceback (most recent call last):
  File &quot;C:\Users\david\AppData\Local\Programs\Python\Python39\lib\site-package\pdf2image\pdf2image.py&quot;, line 441, in pdfinfo_from_path
  proc = Popen(command, env=env, stdout=PIPE, stderr=PIPE)
  File &quot;C:\Users\david\AppData\Local\Programs\Python\Python39\lib\subprocess.py&quot;, line 951, in __init__
  self._execute_child(args, executable, preexec_fn, close_fds,
  File &quot;C:\Users\david\AppData\Local\Programs\Python\Python39\lib\subprocess.py&quot;, line 1420, in _execute_child
  hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
  FileNotFoundError: [WinError 2] Impossibile trovare il file specificato
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
  File &quot;C:\Users\david\OneDrive\Desktop\SMEpy\prova!!!.py&quot;, line 2, in &lt;module&gt;
  pages = convert_from_path('img732.pdf', 500)
  File &quot;C:\Users\david\AppData\Local\Programs\Python\Python39\lib\site-packages\pdf2image\pdf2image.py&quot;, line 97, in convert_from_path
  page_count = pdfinfo_from_path(pdf_path, userpw, poppler_path=poppler_path)[&quot;Pages&quot;]
  File &quot;C:\Users\david\AppData\Local\Programs\Python\Python39\lib\site-packages\pdf2image\pdf2image.py&quot;, line 467, in pdfinfo_from_path
  raise PDFInfoNotInstalledError(
  pdf2image.exceptions.PDFInfoNotInstalledError: Unable to get page count. Is poppler installed and in PATH?
  </code></pre>
  <p>I have the .pdf file in the same directory of .py file. Where's the problem?</p>