title: pdfmake - Get PDF like jsPDF function output()
body: <p>I am using pdfmake to generate a PDF client side. It's working great on Chrome: I get a base64 encoded URL that opens in a new tab.</p>
  
  <p>However, on my Cordova app on android, it does not work so I want to write the PDF to the device. When I use jsPDF doc.output(), I manage to write the pdf to file in this format:</p>
  
  <pre><code>%PDF-1.3
  3 0 obj
  &lt;&lt;/Type /Page... etc
  </code></pre>
  
  <p>Does anyone know how to get this PDF code with pdfmake?</p>