title: Download using jsPDF on a mobile devices
body: <p>I have a page that includes a download button using jsPDF. On desktop machines it downloads the page as it should. However, <code>pdf.save()</code> does not work on my tablet or phone.</p>
  
  <p>I tried to add a special case for mobile devices to open the PDF in a new window, since mobile devices don't download things the same as desktops, with the idea being that once the PDF is open in a new window the user can choose to save it manually.</p>
  
  <pre><code>var pdf = new jsPDF('p', 'pt', 'letter');
  var specialElementHandlers = {
      '#editor': function (element, renderer) {
          return true;
      }
  };
  
  html2canvas($("#pdf-area"), {
      onrendered: function (canvas) {
          $("#pdf-canvas").append(canvas);
          $("#pdf-canvas canvas").css("padding", "20px");
      }
  });
  
  var options = {
      pagesplit: true
  };
  
  function download(doctitle) {
      pdf.addHTML($("#pdf-area")[0], options, function () {
          if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
              pdf.output('dataurlnewwindow');           
          } else {
              pdf.save(doctitle);
          }        
      });
  }
  </code></pre>
  
  <p>But the download function still does nothing on my tablet/phone. I tested it with this to make sure the pdf.output() function was working:</p>
  
  <pre><code>    pdf.addHTML($("#pdf-area")[0], options, function () {
          pdf.output('dataurlnewwindow');                
      });
  </code></pre>
  
  <p>and it does still work on desktop, but does nothing on mobile.</p>