title: img2pdf: one page of pdf with one image?
body: <p>The souce file is <a href="https://pan.baidu.com/s/10JSwKyMOmMs_rAIt_X2Dnw" rel="nofollow noreferrer">here</a>.The fetch code is <code>sify</code> .It's just one jpg. If you can't download it, please contact bbliao@126.com. </p>
  
  <p>However this image doesn't work with <code>fpdf</code> package, I don't know why. You can try it.</p>
  
  <p>Thus I have to use the <code>img2pdf</code>. With the following code I converted this image to pdf successfully.</p>
  
  <pre><code>t=os.listdir()
  with open('bb.pdf','wb') as f:
      f.write(img2pdf.convert(t))
  </code></pre>
  
  <p>However, when multiple images are combined into one pdf file, the <code>img2pdf</code> just combine each image  by head_to_tail. This causes every pagesize = imgaesize. Briefly, the first page of pdf is 30 cm*40 cm while the second is 20 cm*10 cm the third is 15*13...That's ugly.</p>
  
  <p>I want the same pagesize(<code>A4</code> for example) and the same imgsize in every page of the pdf. One page of pdf with one image.</p>