title: jsPDF Output PDF Download
body: <p>I'm creating a PDF using jsPDF (<a href="https://github.com/MrRio/jsPDF" rel="nofollow noreferrer">https://github.com/MrRio/jsPDF</a>).
  It's very basic, but suffices to do the job.
  To actually create the before defined PDF I use
  <code>doc.output ('datauri');</code>.</p>
  <p>The Doc's are very poor, I don't know what output types are available and if it matters.
  It's very hard to find anything about this on Google; jsPDF seems to be not so common as is should be.
  It opens the PDF but I want the PDF to start downloading as a file.
  I want this dialog to open, that ask if I want to save or open.
  I hope anyone understands what I'm trying to do.</p>
  <p>I found a list of all outputtypes: <a href="https://stackoverflow.com/a/18098815/3123142">https://stackoverflow.com/a/18098815/3123142</a> What I want is:</p>
  <pre><code>doc.output ('save', 'filename.pdf');
  </code></pre>
  <p>But it throws an error: &quot;Error in function jsPDF/output: saveAs is not defined&quot; How to fix this?</p>