Skip to content

jsPDF multi page PDF with HTML renderrer #159

@panchotiya

Description

@panchotiya

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')
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions