title: How to open (not save) a generated blob array of a pdf (Intel XDK-Android)?
body: <p>I want to know a properly and proved way to open (not save) a generated blob array of a pdf with some default app for that (e.g. Adobe reader) if I am developing for Android with Intel XDK and Cordova.</p>
  
  <p>Unsuccessfully I tried this (generated with jspdf):</p>
  
  <pre><code>    function createPDF(){
          console.log("generating pdf...");
          var doc = new jsPDF();
  
          doc.text(20, 20, 'HELLO!');
  
          doc.setFont("courier");
          doc.setFontType("normal");
          doc.text(20, 30, 'This is a PDF document generated using JSPDF.');
          doc.text(20, 50, 'YES, Inside of cordova!');
  
          pdfOutput = doc.output();
          console.log(pdfOutput);
  
          var buffer = new ArrayBuffer(pdfOutput.length);
          var array = new Uint8Array(buffer);
          for (var i = 0; i &lt; pdfOutput.length; i++) {
            array[i] = pdfOutput.charCodeAt(i);
          }
          var pdfAsDataUri = "data:application/pdf;base64," + array;
          window.open(pdfAsDataUri);
      }
  </code></pre>
  
  <p>Also I tried a lot of example but nothing works, just in case, none error is shown in console.</p>
  
  <p>Thank you all.</p>