-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
Description
Hi
I have html page which contain more than one page data and if i generate pdf than it will display only one page pdf please help me for that.
My code is
function demoFromHTML(element) {
var pdf = new jsPDF('p','in','letter')
, source = $(element)[0]
, specialElementHandlers = {
'#bypassme': function(element, renderer){
return true
}
}
pdf.fromHTML(
source // HTML string or DOM elem ref.
, 0.5 // x coord
, 0.5 // y coord
, {
'width':7.5 // max width of content on PDF
, 'elementHandlers': specialElementHandlers
}
)
//pdf.addPage();
pdf.output('dataurl')
}