jsPDF Library usage


How i can add image to pdf generate from jsPDF Library example ? I try but withouth results. Can you provide me same sample reports code also for database ?

Thanks in advance

Did you see the Print2PDF sample?

Try this

var pdf = new jsPDF("p","mm","a4", True);
var myImage = filePathToImage
pdf.addImage(myImage, 0,0, 210, 297);

The first two 0’s are the coordinates where to place the image on the PDF and 210, 297 is the image size.