0

I'm having trouble using JSPdf's addHTML, technically everything is working, but it does not print all the content that is in my div that I set, it only prints what I can see on the screen. Has anyone ever experienced this?

let doc = new jsPDF('p','pt','a4')
        let source = document.getElementById('draft')

        let options = {
            format: 'PNG',
            pagesplit: false
        }

        doc.addHTML(source, 0, 0, options, function(){
          doc.output('dataurlnewwindow')
        })
Rafael Augusto
  • 467
  • 2
  • 12
  • 28

0 Answers0