jsPDF icon indicating copy to clipboard operation
jsPDF copied to clipboard

Hi, How to add canvas image in between the other jsPdf elements

Open rajprabhuRP opened this issue 7 years ago • 1 comments

Hi, I have converted the particular div tag into canvas using html2canvas and I need to add this converted canvas image with other JsPdf elements like Autotables and texts.

Thanks.

rajprabhuRP avatar Dec 18 '18 11:12 rajprabhuRP

If you use html2canvas, you draw a canvas. You can simply add the canvas as any other imageData with addImage. But be aware that html2canvas is asynchronous.

Uzlopak avatar Dec 18 '18 13:12 Uzlopak