From 66ccd26cb42d0cf116cef83e43aa9dca0650195a Mon Sep 17 00:00:00 2001 From: gered Date: Thu, 4 May 2017 08:13:41 -0400 Subject: [PATCH] add base styles table class for repeated table headers the -fs-table-paginate property has an old and still unfixed bug where it basically resets/ignores the border-collapse property of the table. setting border-spacing to 0 is a workaround for this, but it does result in borders that are a tad bit thicker then they would be if -fs-table-paginate was not used --- resources/htmltopdf-base.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/htmltopdf-base.css b/resources/htmltopdf-base.css index 743f860..55055f5 100644 --- a/resources/htmltopdf-base.css +++ b/resources/htmltopdf-base.css @@ -46,6 +46,12 @@ table.no-split-rows tr { page-break-inside: avoid; page-break-after: auto; } +table.repeat-header { + -fs-table-paginate: paginate; + /* hack to work around bug http://stackoverflow.com/questions/10512324 + unfortunately, this does result in borders that are a little bit too thick */ + border-spacing: 0; +} table.keep-together { page-break-inside: avoid; }