How do I use pdf.js close PDF?
<p>I'm using pdf.js as an embedded PDF viewer in a web application I'm building.  I have an iframe that I use as the 'viewer' by setting (via javascript) the SRC attribute to the following:</p>

<pre><code>$('#fileViewer-1').find('iframe').attr('src', 'js/pdfjs-1.4.20/web/viewer.html?file%2FMYFOLDER%2FIMAGES%2FPDFdocs%2F' + filename + '#zoom=page-width');
</code></pre>

<p>so I'm basically just calling this URL as the SRC of my iframe: </p>

<pre><code>js/pdfjs-1.4.20/web/viewer.html?file=MYFILENAMEHERE.pdf
</code></pre>

<p>and now I see memory increasing with each subsequent PDF load (where I change the SRC url attribute to a <em>new</em> PDF document).</p>

<p>QUESTION:  how can I call the pdfViewClose() function / method I see on line #6432 of viewer.js?</p>

<p>As I understand it, without calling this, memory in the browser may not be de-allocated.</p>

<p>Currently I'm seeing memory increase steadily and eventually the browser (Firefox) crashes after a number of PDF changes.</p>