Only one page is created with html2pdf
See original GitHub issueI have a long and wide html page. I would like to print it to pdf with the CSS I’ve applied. I tried your html2pdf
function and notice the following:
1: only one page is created and cut the top left corner of my page. 2: Font is slightly different than the original page.
Any clue on how to show multiple pages and how to make the webpage fit into one page wide?
Thank you for submitting an issue to jsPDF. Please read carefully.
Are you using the latest version of jsPDF? Yes Have you tried using jspdf.debug.js? Nope Steps to reproduce Pass a wide/long page or dom to html2pdf
Ideally a link too. Try fork this http://jsbin.com/rilace/edit?html,js,output
What I saw Only one page is created and only shows top-left part of the page.
What I expected
Showing multiple pages and be able to fit into page width
or set page width.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:6
this html2pdf seems to be unsupported code. So you should look for alternatives and should not hope for any support/bugfixing.
We are working on a new html2pdf plugin, which will be based on
html2canvas
and ourcontext2d
plugin (like the solution of html2pdf). This should lead to more reliable results for your projects. And it will give us the time to focus on the core functionality of pdf-generation because we will not use our energy for writing/supporting/extending 2 html plugins. If you still want to useaddHTML
orfromHTML
you can still use jsPDF 1.4.1.Best Regards