How do I get a multi-page pdf from a website using jsPDF and HTML2Canvas?
问题 I have a script that uses HTML2Canvas to take a screenshot of a div within the page, and then converts it to a pdf using jsPDF. The problem is the pdf that is generated is only one page, and the screenshot requires more than one page in some instances. For example the screenshot is larger than 8.5x11. The width is fine, but I need it to create more than one page to fit the entire screenshot. Here is my script: var pdf = new jsPDF('portrait', 'pt', 'letter'); $('.export').click(function() {