Skip to content
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

multiple pages #468

Open
X-mac opened this issue Apr 23, 2019 · 4 comments

Comments

Projects
None yet
2 participants
@X-mac
Copy link

commented Apr 23, 2019

Hi, thanks for your great work. I'm trying to fix this problem:
I generate a report with multiple pages, each page is a resume of working hour for single person. My problem is when a person worked many times, the table in te report overflow the footer, and jump in the second page.
I would like that when the page content reach the footer jump in another page without owerflow the footer.

@talonlzr

This comment has been minimized.

Copy link

commented Apr 23, 2019

Easy. Use the backbottom attribute of the <page />-tag to specify a larger bottom margin, and it'll wrap before your footer appears.

Take a look at the docs here: https://github.com/spipu/html2pdf/blob/master/doc/page.md

@X-mac

This comment has been minimized.

Copy link
Author

commented Apr 23, 2019

Easy. Use the backbottom attribute of the -tag to specify a larger bottom margin, and it'll wrap before your footer appears.

Take a look at the docs here: https://github.com/spipu/html2pdf/blob/master/doc/page.md

Thanks for the answer talonlzr, the backbottom attribute I need to use in tag or in <page_footer> tag ?

@talonlzr

This comment has been minimized.

Copy link

commented Apr 23, 2019

Create a <page backbottom="20mm">
...tag around your <page_header />-tag if you don't already have a page-tag.
</page>

@X-mac

This comment has been minimized.

Copy link
Author

commented Apr 23, 2019

solved. Thanks talonlzr for your support. Have a nice day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.