title: download a pdf with filesaver.js and blob
body: <p>I'm trying to download a file with <code>Filesaver.js</code>. And when I try to do this with  csv, it works fine. But I need to download a pdf now.</p>
  
  <p>How can I do that?
  I use <code>Filesaver.js</code> with a blob object, my code looks something like this:</p>
  
  <pre><code>var filename = "myfile.csv";
  var s = "my csv text content";
  var blob = new Blob([s], {type "text/csv;charset=utf-8"});
  var filesaver = saveAs(blob,filename);
  </code></pre>
  
  <p>I'd like to know what kind of data type should I pass to the blob onject, when I'd like to download the pdf.</p>