ArthurHub / ArthurHub/HTML-Renderer

HTMLRenderer.PDFSharp - thead style for repeating table header being ignored

未关闭
#193 3 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
C#
星标
1.4k
派生
550
平均合并
14 天 9 小时
30 天内合并 PR
1

描述

Hi,

I am using the method PdfGenerator.GeneratePdf method. I send the html and css to the function and it works okay and all the styles are being applied to the pdf except the thead style.

I have a table in the html section that overflows to the next page and I want the table columns to show on every page the rows are. I have tried to add a style in the css section :
'thead { display:table-header-group !important; }' and I have directly added the style in html as well but the table columns do not show up on the next page. It seems like that style is being ignored.

Is there a way to repeat the table columns while using GeneratePdf method? Any help would be appreciated!

Thanks

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先,通过 PdfGenerator.GeneratePdf 使用一个跨越多个页面的 HTML 表格以及使用 display: table-header-group 的 thead 来复现该问题。检查 PDF 渲染路径对 thead 样式和分页的处理;当表格标题在每个页面上重复出现时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp, html
领域
tooling
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。