title: Extract a page from a pdf as a jpeg
body: <p>In python code, how to efficiently save a certain page in a pdf as a jpeg file? (Use case: I've a python flask web server where pdf-s will be uploaded and jpeg-s corresponding to each page is stores.)</p>
  
  <p><a href="https://stackoverflow.com/a/34116472">This solution</a> is close, but the problem is that it does not convert the entire page to jpeg.</p>