ArthurHub / ArthurHub/HTML-Renderer

html table size not fit within a letter size pdf

Aberta
#183 2 comentários 0 reações 0 responsáveis Ver no GitHub
bug
Linguagem predominante
C#
Estrelas
1.4k
Forks
550
Merge médio
14d 9h
PRs com merge (30d)
1

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

Comece pelo exemplo PDFCombination e pela chamada a PdfGenerator.GeneratePdf, usando as margens de PdfGenerateConfig mostradas, o tamanho de página Letter e a orientação retrato. Reproduza a tabela grande demais e verifique se a tabela resultante cabe no PDF tamanho Letter; a issue não fornece nenhum arquivo de teste nem um caminho de implementação nomeado.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
csharp
Domínio
tooling
Tipo de issue
Bug
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
25/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.