0👍
jsPDF is Client-side JavaScript PDF generation, this means the image needs to be transfered as an embeded var imgData = 'data:image/jpeg;base64,...imagedata ...
var imgData = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAYAAACAvzbMAAAAAXNSR0IArs4c6QAAIABJREFUeF7tneGyYzeOg7vf/6F30pnsVm0laUI+nymQB/NXNAUCoBD7Vk3//J8//vcj/wsDYSAMhIEwcMjAzwTIIWMpDwNhIAyEgT8ZSIDECGEgDISBMPARAwmQj2jLh8JAGAgDYSABEg+EgTAQBsLARwwkQD6iLR8KA2EgDISBBEg8EAbCQBgIAx8xkAD5iLZ8KAyEgTAQBhIg8UAYCANhIAx8xEAC5CPa8qEwEAbCQBhIgMQDYSAMhIEw8BEDRwHy8+fPjy7Jh+Yz4PT/eEP60GmuXy5xm43EM38L3jWBshsJkHd54uNpFTN93Pzwg+Sj5jRXAuTQCCn/KgPKbiRAvirBnuaKmbqmTYBoTBOakVxrqFPlwoDinwSIi1rmOBQzdY1APmpOc+UbSJeDco/CgLIbCRCFydT8UMzURVMCRGOa0IzkWkOdKhcGFP8kQFzUMsehmKlrBPJRc5or30C6HJR7FAaU3UiAKEymJt9AmjzgFo4kniYKcw3EQAIEIjJtfiRAmkxAPtjKA1CNReKp7sq5FwOKf/INxEszWzSKmbrAk4+a01z5CavLQblHYUDZjQSIwmRq8g2kyQNu4UjiaaIw10AMJEAgItMmP2F1eYB8sJUHoJqLxFPdlXMvBhT/5BuIl2a2aBQzdYEnHzWnufITVpeDco/CgLIbCRCFydTkJ6wmD7iFI4mnicJcAzGQAIGITJv8hNXlAfLBVh6Aai4ST3VXzr0YUPyTbyBemtmiUczUBZ581Jzmyk9YXQ7KPQoDym4kQBQmU5OfsJo84BaOJJ4mCnMNxEACBCIybfITVpcHyAdbeQCquUg81V0592JA8U++gXhpZotGMVMXePJRc5orP2F1OSj3KAwou5EAUZhMDfITFvnwU5IoS6LctXU2x7kUPVLznAFlN64FiALuOQXv7kAuP6GXGx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/Qwc/YNS++nIhGEgDISBMKAykABRmUpdGAgDYSAM/D8GEiAxRBgIA2EgDHzEQALkI9ryoTAQBsJAGEiAxANhIAyEgTDwEQMJkI9oy4fCQBgIA2EgARIPhIEwEAbCwEcMJEA+oi0fCgNhIAyEgf8As1aFE0AtmmIAAAAASUVORK5CYII='
var doc = new jsPDF();
doc.setFontSize(40);
doc.text(35, 25, "Hello World!");
doc.addImage(imgData, 'PNG', 15, 40, 180, 180);
jsPDF does its job well, however, there can be disadvantages, imgData should idealy be duplicated inline and thus rendered as a visible image, rather than just simply rendered for PDF inclusion, thus try to avoid either of these approaches.
The demos can be seen at http://mrrio.github.io/jsPDF/
A similar Demo set can be seen at https://parall.ax/products/jspdf
Source:stackexchange.com