I am trying to generate pdf on client-side using jsPDF library. My code looks like
if you want to add a png image, you have to get the latest jspdf.js and add the support png libraries
then in the script, change the format to 'PNG'