title: Save pdf directly to file using jspdf
body: <p>My script is a Firefox addon so has access to sensitive code like access to filesystem etc.<br/>
  I display a <code>Panel</code> populated with <code>html</code> content, I could easily send input to the addon code using <code>postMessage</code><br/>
  When I run the code below a <code>pdf</code> is generated and a download prompt is shown so i can select directory to place file, but I'd like to save the file using javascript directly to a file in background without the download prompt showing.<br/>
  Something like: <code>doc.saveToFile("/path/to/file") // custom method in my addon code</code><br/>
  Would this be possible using the <code>jsPDF</code> object?</p>
  
  <pre><code>&lt;html&gt;
  
      &lt;head&gt;
          &lt;script type='text/javascript' src='jspdf.source.js'&gt;&lt;/script&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
          Hey
          &lt;script&gt;
          var doc = new jsPDF();
          doc.text(20, 20, 'Hello bob');
          doc.save('test.pdf');
          &lt;/script&gt;
  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>