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 摘要。