title: Create PDFs inside a one specific folder
body: <p>In my code I first create a folder:</p>
  <pre><code>if not os.path.exists(&quot;my_folder&quot;):
    os.mkdir(&quot;my_folder&quot;)
  </code></pre>
  <p>After my script makes multiple pdf`s. However, I would like the pdfs to all to end up inside that specific folder. I have tried:</p>
  <pre><code>pdf=PDF()
  with open(os.path.join(&quot;my_folder&quot;, pdf), 'w') as pdf:
     pdf.add_page()
  </code></pre>
  <p>But, I get this Error TypeError: expected str, bytes or os.PathLike object, not NoneType. Can someone help me?</p>