title: PyMUPDF - How to convert PDF to image, using the original document settings for the image size and set to 300dpi?
body: <p>I'm currently looking at using the python package PyMuPDF for a workflow that converts PDF's to images (In my case, .TIFF files).</p>
  <p>I am trying to mimic the behaviour of another program that I currently use for PDF -&gt; Image conversion. In that program, it lets you set the settings for imaging as below:</p>
  <p><strong>Image Output Quality (DPI):</strong> (Defaults to 300dpi)</p>
  <p><strong>Basic Image Size:</strong> Original setting - renders the image with the original document settings.</p>
  <p>My question is, is this possible within PyMuPDF? How can I set the output DPI for my images to 300 and set the image size to the original document size? I am quite new to dealing with this sort of processing for PDF's/images so any help would be much appreciated.</p>
  <p>Thanks in advance,</p>