Hi.
For solve this problem, I suggestion that you using the function "
fromHTML".
Below there are a code in javascript for print html page.
The code, I found in the github
GitHub - MrRio/jsPDF: Client-side JavaScript PDF generation for everyone.
There are many example there that can help you in your task.
I hope it helps.
Regards!
Sheila
function printHtmldiv()
{
var pdf = new jsPDF('p', 'pt', 'letter')
, source = $('#mydiv')[0]
, specialElementHandlers = {
'#bypassme': function(element, renderer)
{
return true
}
}
margins = {
top: 80,
bottom: 60,
left: 40,
width: 522
};
pdf.fromHTML
(
source
, margins.left
, margins.top
, {'width': margins.width
, 'elementHandlers': specialElementHandlers
}
, function (dispose)
{
pdf.save('Mypdf.pdf');
}
, margins
)
}