-
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
generating a PDF with multiple HTML div elements on separate pages using JS? #3726
Comments
In my experience, setting One caveat is that overflowing content on the page will just be cut off instead of starting a new page. That's what |
Same issue i am facing |
ok found a solution that works for me, and allows me to use it involves setting the can determine the correct const doc = new jsPdf();
for (let i = 0; i < numPages; i++) {
const y = (doc.getNumberOfPages() - 1) * doc.internal.pageSize.height;
const page = document.createElement('div') // append stuff into the div
await doc.html(page, { ...htmlOptions, y });
doc.addPage();
} |
I am facing the issue to generate the a pdf with multiple HTML div elements on separate pages
only text getting printed but not the content from second div getting blank
i want to allow the autopaging text for pages
The text was updated successfully, but these errors were encountered: