ArthurHub / ArthurHub/HTML-Renderer
html table size not fit within a letter size pdf
- Lingua principale
- C#
- Stelle
- 1.4k
- Fork
- 550
- Merge medio
- 14g 9h
- PR unite (30g)
- 1
Descrizione
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");
}
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100