ArthurHub / ArthurHub/HTML-Renderer

html table size not fit within a letter size pdf

未关闭
#183 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
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");
}

贡献指南

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

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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