ArthurHub / ArthurHub/HTML-Renderer

html table size not fit within a letter size pdf

オープン
#183 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
C#
スター
1.4k
フォーク
550
平均マージ
14日 9時間
マージ済み PR(30日)
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");
}

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start with the PDFCombination example and PdfGenerator.GeneratePdf call, using the shown PdfGenerateConfig margins, Letter page size, and portrait orientation. Reproduce the oversized table and verify that the resulting table fits within the letter-sized PDF; the issue provides no test file or named implementation path.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。