title: Create PDF from a list of images
body: <p>Is there any practical way to create a PDF from a list of images files, using Python?</p>
  <p>In Perl I know <a href="https://metacpan.org/pod/PDF::FromImage" rel="noreferrer">that module</a>. With it I can create a PDF in just 3 lines:</p>
  <pre><code>use PDF::FromImage;
  ...
  my $pdf = PDF::FromImage-&gt;new;
  $pdf-&gt;load_images(@allPagesDir);
  $pdf-&gt;write_file($bookName . '.pdf');
  </code></pre>
  <p>I need to do something very similar to this, but in Python. I know the <a href="https://github.com/mstamy2/PyPDF2" rel="noreferrer">pyPdf</a> module, but I would like something simple.</p>