使用Pechkin在每个页面上重复表头

时间:2015-04-07 12:42:46

标签: c# pdf-generation wkhtmltopdf pechkin tuespechkin

我正在尝试将表格的标题(thead)包含在Pechkin(wkhtmltopdf的包装器)生成的每个页面的顶部,但它似乎根本不起作用。这个功能是否可用,或者我错过了什么?

我尝试将以下内容包含在CSS页面中:

table { page-break-after: auto; }
tr { page-break-inside: avoid; page-break-after: auto; }
td { page-break-inside: avoid; page-break-after: auto; }
thead { display: table-header-group; }
tfoot { display: table-footer-group; }

1 个答案:

答案 0 :(得分:0)

我担心答案是这是不可能的。您可以做的唯一事情是将表头放在PDF标题中。