ArthurHub / ArthurHub/HTML-Renderer

html table size not fit within a letter size pdf

Offen
#183 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
C#
Sterne
1.4k
Forks
550
Ø Merge
14 T. 9 Std.
Gemergte PRs (30 T.)
1

Beschreibung

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");
}

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp
Bereich
tooling
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.