ArthurHub / ArthurHub/HTML-Renderer
html table size not fit within a letter size pdf
- 主要語言
- C#
- 星號
- 1.4k
- 分支
- 550
- 平均合併
- 14 天 9 小時
- 30 天內合併 PR
- 1
描述
I am new in HTML-Renderer. I tried many times to fix the table size in html edited in VS html editor in HTML 4.01. However, the table is scaled up and always outside of the letter size pdf. I also defined the size of the table in html codes.
Is there anyway in the HTML-Renderer to fix the table inside the letter pdf size.
Thanks,
public PDFCombination(string html)
{
PdfGenerateConfig config = new PdfGenerateConfig()
{
MarginBottom = 25,
MarginLeft = 20,
MarginRight = 20,
MarginTop = 25,
PageSize = PdfSharp.PageSize.Letter,
PageOrientation = PdfSharp.PageOrientation.Portrait,
};
PdfDocument tempPDFDoc = PdfGenerator.GeneratePdf(html, config);
tempPDFDoc.Save("temp");
}
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
從 PDFCombination 範例和 PdfGenerator.GeneratePdf 呼叫開始,使用所示的 PdfGenerateConfig 邊界、Letter 頁面大小和直向方向。重現過大的表格,並驗證產生的表格能夠放入 Letter 大小的 PDF 中;該 issue 未提供測試檔案或具名的實作路徑。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- tooling
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100