-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
jspdf doesnt display html element width correctly #3154
Comments
no, i get this: using html2canvcas, my code:
also, i have no idea where this margin comes from. my html has no margin or padding |
Mmh then this looks like issues both in html2canvas as well as in jsPDF, since there is still a margin in your second example but it's smaller than in the first example. You should probably create an issue on html2canvas side, too. |
I was struggling with the same error. I thing it's a problem with the unit scaling or something like that. This is the code i used:
Hope it helps! |
You might try the new |
Hello all,
I'm currently trying to put a HTML element to PDF using the latest version. No success so far, the HTML is rendered in PDF but the width, which should be 100% of the PDF page width, is not displayed correctly.
Here's how it is being generated:
Here's how the HTML page looks in the browser:
My code:
my css is this:
and the html:
The text was updated successfully, but these errors were encountered: