-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The jsPDF html module generates a blank page #2571
Comments
it has problem with |
This issue is stale because it has been open 90 days with no activity. It will be closed soon. Please comment/reopen if this issue is still relevant. |
I'm still facing this issue. Did anyone solve it here? I'm using reactjs. Here is my code what am i doing wrongly ? |
Same for me. I'm using it in Angular application. |
try downgrading to html2canvas to rc.1 version. |
sorry I forgot to mention that it work great on Chrome, blank page happens only in Safari |
Yeah, I got the same issue. edge works well, but other browsers show blank pdf. |
I got the same issue, because my chrome has grammarly extension. |
just uninstall html2canvas and install html2canvas@1.0.0-rc.1 |
This is a little late to the party, but FOR ME, adding an extra 30 px to the internal.pageSize.height removed the extra page. I tried progressively lower values, and it worked lower until it didn't. I was trying different values based on the margin and all, but finally just added 30 and called it a day, which seemed to be ok. This does add a little margin at the bottom and for some, this may make this option a non-starter. Again, this worked for me so I'm passing this along. I should also point out, I'm only generating a single page. I have not tried this with a multi-page render - that result would be interesting to know. |
The jsPDF module generates a blank page.
No matter if it's an element reference or an HTML string, I always get empty PDFs for some reason.
Note: The above code in the event listener handler is the same one from the documentation.
This doesn't seem to work either:
I also tried importing html2canvas from a CDN and excluding it from this file (commenting out the 2nd and 3rd line), but that doesn't work either.
I also tried importing both html2canvas and jsPDF from a CDN and that doesn't seem to work as well.
I am using the following versions of the packages (excerpt from the
packages.json
file):The text was updated successfully, but these errors were encountered: