i have to pdf generate using javascript but in pdf content is not diplay my actual code like image diplay left side and table display with border but this shoud not happen.my page shoud look as well as look like in the pdf. i using jspdf so what can i change my code.

| Product | Qty | Price |
|---|---|---|
| Total: | ||
Thank you mastimania
Tearm & Condition
$('#download_pdf').click(function () {
var pdf = new jsPDF('p', 'pt', 'letter')
, source = $('#purchaseform_demo')[0]
, specialElementHandlers = {
'#bypassme': function(element, renderer){
return true
}
}
margins = {
top: 60,
bottom: 60,
left: 40,
width: 522
};
pdf.fromHTML(
source
, margins.left
, margins.top
, {
'width': margins.width
, 'elementHandlers': specialElementHandlers
},
function (dispose) {
pdf.save('download_pdf.pdf');
},
margins
)
});

Muthu KumarPosted Feb 19, 2019, 3:43 AM
Here is an working example for export image as pdf using jspdf.
https://stackoverflow.com/questions/45160074/exporting-images-to-jspdf-from-html
https://jsfiddle.net/vks9009/c217h0vd/
Salman BegPosted Feb 9, 2019, 4:10 AM