You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For anybody else looking and running into the same issue with the body content hiding the footer, here is the solution that helped me:
"set the footer before any content. This is because the footer's height calculation is done before any content processing. But if you add a footer later with SetHTMLFooter, mPDF doesn't recalculate the footer's height, so it will be 0."
Guidelines
Description of the bug
I'm trying to write a story which consists of different chapters into a pdf file.
My codes generate a PDF file with the following page footers:
Page 1 on file: [no footer] (it's the Table of Contents)
Page 2 on file: Chapter 1 Page 1 (because I reset the page number here)
Page 3 on file: [no footer]
Page 4 on file: [no footer]
Page 5 on file: Chapter 2 Page 4
Page 6 on file: [no footer]
Page 7 on file: [no footer]
Page 8 on file: [no footer]
Page 9 on file: Chapter 3 Page 8
Page 10 on file: [no footer]
Page 11 on file: [no footer] ....
I believe this is a bug that the pages in between have no footers. Or is my implementation flawed? Please advice.
mPDF version
8.0.13
PHP Version and environment (server type, cli provider etc., enclosing libraries and their respective versions)
7.4, php-fpm on centos
Reproducible PHP CSS HTML snippet suffering by the error
The text was updated successfully, but these errors were encountered: