title: Output not doing anything when using PyFPDF
body: <p>I'm trying to put all the images in a directory into a single PDF. I'm writing in python 3 and using PyFPDF. This is my code:</p>
  <pre><code>import os
  from fpdf import FPDF
  pdf = FPDF()
  list = os.listdir(r'C:\this\is\my\destination\library')
  count = 1
  for name in list:
      path = r'C:\this\is\my\destination\library' + &quot;\\&quot; + name
      pdf.add_page()
      pdf.image(path, x=None, y=None)
      print(count)
      count+=1
  print(&quot;done looping&quot;)
  pdf.output('finaldocument.pdf', 'F')
  print(&quot;done&quot;)
  </code></pre>
  <p>When I run this in my command window, it counts all the way up until the amount of images in the folder, then prints &quot;done looping&quot; and just sort of stops? It doesn't terminate, it just does nothing until I close the cmd window manually.</p>
  <p>I've tried putting a D (and an S, and an I) instead of an F in the output args to explore all the options in the documentation, but nothing is taking. Anyone know what's wrong here?</p>