title: Cannot get pdfmake to work for me
body: <p>I am a complete novice when it comes to javascript. I want to use pdfmake so that i can save the output of my html page in a pdf. Below are the exact steps i followed.</p>
  
  <ol>
  <li>Copied pdfmake.min.js and vfs_fonts.js to a directory called build. I got this code from <a href="https://github.com/bpampuch/pdfmake" rel="nofollow noreferrer">https://github.com/bpampuch/pdfmake</a>. I downloaded the zip file and copied the above files over.</li>
  <li>Below is the code i am using:</li>
  </ol>
  
  <blockquote>
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang='en'&gt;
  &lt;head&gt;
  &lt;meta charset='utf-8'&gt;
  
  &lt;script src="build/pdfmake.min.js"&gt;&lt;/script&gt;
  &lt;script src="build/vfs_fonts.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;script type="text/javascript" &gt;
  var docDefinition = { content: 'This is an sample PDF printed with pdfMake'     };
  pdfMake.createPdf(docDefinition).open('test.pdf');
  &lt;/script&gt;
  </code></pre>
  </blockquote>
  
  <p>What am I doing wrong here ? Will appreciate any help.</p>
  
  <p>Original post : <a href="https://stackoverflow.com/questions/24475971/makepdf-javascript-problems">makepdf javascript problems</a>
  Browser tried: Firefox, chrome and safari</p>