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

Handling of TFOOT tag is incorrect #25

Open
PhenX opened this issue Dec 6, 2012 · 13 comments
Open

Handling of TFOOT tag is incorrect #25

PhenX opened this issue Dec 6, 2012 · 13 comments

Comments

@PhenX
Copy link
Member

PhenX commented Dec 6, 2012

Original author: eclecticgeek (May 29, 2009 17:59:28)

What steps will reproduce the problem?

  1. Create an HTML document that contains a table with THEAD, TBODY, and
    TFOOT sections. The table should span two pages in the rendered PDF.
  2. Render the document with DOMPDF.

What is the expected output?

The PDF should contain a table that spans two pages. The THEAD and TFOOT
should bookend the table on each page on which it appears.

What do you see instead?

The THEAD renders as expected, but the TFOOT is rendered as if it were a
normal table row.

Additional information:

The TFOOT grouping should appear before the TBODY grouping in the HTML code
as per the W3C specification:
http://www.w3.org/TR/html4/struct/tables.html#h-11.2.3

We may wish to consider allowing the TFOOT grouping to be placed at the end
of the table code since this is a likely scenario.

Original issue: http://code.google.com/p/dompdf/issues/detail?id=18

@PhenX
Copy link
Member Author

PhenX commented Dec 6, 2012

From ryan.mas on July 28, 2011 21:38:50
I've gotten a lot of email requests for this. We may want to make this a priority. Has anyone looked into it yet?

@PhenX
Copy link
Member Author

PhenX commented Dec 6, 2012

From fabien.menager on July 31, 2011 13:35:07
Nope, we didn't work on it, we try to resolve page break issues in tables for now.

@bsweeney
Copy link
Member

Thinking about this again after a post on the forum. The question of TFOOT support presents a particularly problematic issue where we have to back up from the bottom of the page when a footer is present. Not entirely impossible to address, perhaps the easiest method would be to "shorten" the available height when we're inside a table with a footer.

@darkolaz
Copy link

So, to not open new issue about this very same problem i experience, just wanted to ask if anything is changed so far.

@bsweeney
Copy link
Member

No updates on this issue.

@ghost
Copy link

ghost commented Jun 30, 2015

So, just to clarify, if I want a header and footer that show up on every page, and I want to use HTML+CSS to do that, I need to use the method laid out here: http://stackoverflow.com/questions/7484318/header-in-pdf-page-using-dompdf-in-php ... as opposed to table headers and footers, correct?

@akiuni
Copy link

akiuni commented Jan 19, 2018

Hello
Just for information, on dompdf 0.8.2, tfoot is working well but must be placed at the end of the table :

<table>
<thead> ... </thead>
<tbody> ... </tbody>
<tfoot> ... </tfoot>
</table>

@CM1990
Copy link

CM1990 commented Jun 7, 2018

@akiuni
not working for me even if tfoot placed after tbody for both php 5.6 anf 7.2

@lainosantos
Copy link

Any news for this issue?

@andrefedalto
Copy link

andrefedalto commented May 22, 2020

Found the same behavior here, thead repeats on every page but tfoot doesn't. I'm using a fixed div at the bottom of the page as a workaround.

Apparently the issue is in vendor\dompdf\dompdf\src\FrameDecorator\Table.php in method split() where $this->_footers is not being used.

@smsfactor
Copy link

@andrefedalto
I have a table who break if is too big. So the last child of the table is not exactly as the same height of the page. Nobody as workaround to do the job?

@Ouija1733
Copy link

Any news?

@bsweeney
Copy link
Member

bsweeney commented Mar 3, 2024

nothing yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants