Good morning I'm using the following test code;
var doc = new jsPDF('p', 'pt', 'a4');
var specialElementHandlers = {
'#editor': function (element, renderer) {
return true;
}
};
$('#cmd').click(function () {
doc.fromHTML($('#content').get(0), 15, 15, {
'width': 250,
'margin': 1,
'pagesplit': true,
'elementHandlers': specialElementHandlers
});
doc.save('sample-file.pdf');
});
<div id="content">
<div class="container">
<div class="row">
<div class="col-md-6">
<p><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris tempus facilisis augue at blandit. Vivamus eget porta justo. Cras semper leo massa, nec dapibus sapien mollis non. Maecenas in eros eu orci luctus blandit. Nulla consectetur
justo turpis, a feugiat purus tincidunt vitae. Cras sodales nibh eu arcu bibendum aliquam a eget sapien. Pellentesque mollis urna varius, vehicula ex non, ultricies ligula. Nulla convallis laoreet turpis eu convallis. Proin efficitur
a orci eget condimentum.<br><br></p>
</div>
<div class="col-md-6"><img class="img-fluid" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcROovjBLud4mQxdrBK64c5QLaGTRa9RJPJAQ-xDk5KtoE05HfsG"></div></div></div></div><divid="editor"></div>
<button id="cmd">Generate PDF</button>
I would like to know how I can when generating the pdf also generate the image?