Hi,<div><br></div><div>I&#39;m using pypoppler and am wondering how to properly release a pdf file.</div><div><br></div><div>In particular, I would have hoped that the following python code would be &#39;hanging&#39; (in the loop) with only file2.pdf open, as file1 has been del&#39;ed. However, an lsof shows that file1.pdf is still open. How can/should I properly close the file1.pdf?  In my application it causes problems because after loading a few hundred pdfs, I start getting &quot;Too many open files&quot; errors.</div>
<div><br></div><div><div>&lt;code&gt;</div><div><br></div><div>import sys, QtPoppler, time</div><div>if __name__ == &quot;__main__&quot;:</div><div>    d = QtPoppler.Poppler.Document.load(&quot;file1.pdf&quot;)</div><div>
    del d</div><div>    d = QtPoppler.Poppler.Document.load(&quot;file2.pdf&quot;)</div><div>    time.sleep(100000)</div></div><div><br></div><div>&lt;/code&gt;</div><div><br></div><div>Thank you,</div><div>David</div>