title: Trying to add image to pdf using jsPDF
body: <p>Trying this code</p>
  
  <blockquote>
    <p>pdfGenerate.js</p>
  </blockquote>
  
  <pre><code>generatePDF = function() {
  var imgData = 'D:/work/TiffImages/png/895153.0000.png';
  var doc = new jsPDF('p', 'pt', 'a4');
  doc.text(20, 20, 'CTS Aarchival');
  doc.addImage(imgData, 'PNG', 15, 40, 180, 180);
  doc.save('CTStest.pdf');    }
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>Uncaught TypeError: doc.addImage is not a function
  </code></pre>
  
  <p>In HTML I am just calling this method onclick()
  And all required js files are included.</p>