Pagination of large table
Hi!
I am currently trying to generate a page that contains a long table covering more than one page. I would like the table header to repeat itself on every printed page.
After reading this
http://www.webmasterworld.com/forum21/6487.htm
I tried the following:
thead { display: table-header-group; }
tfoot { display: table-footer-group; }
Why didn't it work?
Thanks for your great work
Stefan
-
Hi Stefan, Hi Balazs,
Unfortunately the only way to create a repeating header is to use a CSS extension provided by the underlying flying saucer library. Due to a bug in the library (please refer to https://k15t.jira.com/browse/PDF-333) the PDF exporter currently does not offer this feature. I created a improvement request on our side to fix this issue.
Best,
Tobias -
Hi all,
it seems that the flying saucer library can't do the pagination properly if also border-collapse is switched on for the table. The following CSS results in correct pagination but without collapsing borders:
div.tablewrap table.confluenceTable {
-fs-table-paginate: paginate;
border-collapse: separate;
border: 1px solid #DDDDDD;
}Maybe you can use this as a workaround until the issue is fixed. There is no release date yet since we postponed the roadmap planning due to preparations for the Atlassian Summit.
Best regards,
Jens -
Hi Jens,
it worked for me too. Quite well, actually. Unfortunately it messes up our gliffy diagrams in the export. It seems that they are kept in some kind of table, as they are surrounded a grey box now. Only a part of the diagram is to be seen, the other part is cut off.
Servus,
Stefan -
Hi Stefan,
that's this issue: https://k15t.jira.com/browse/PDF-348
We're already working on this.Best regards,
Jens
Please sign in to leave a comment.
Comments
10 comments