ArthurHub / ArthurHub/HTML-Renderer

html table size not fit within a letter size pdf

Abierto
#183 2 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
C#
Estrellas
1.4k
Forks
550
Merge medio
14 d 9 h
PR fusionados (30 d)
1

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
csharp
Área
tooling
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.