ArthurHub / ArthurHub/HTML-Renderer

Problem render pages to pdf with images

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

Descrição

I'm trying to render html body from email (MimeKit) that contains an embededs images.

I test two ways:

- Changing the attribute img src to "file://" that are locate in an existing local path. For this case, trying to see the html when I paste the html code it makes an error with the image.
- Changing the attribute img src to "data:image" and pasting the string for the bytes[] decoded. In this case it works and I can see the html but I can't create the pdf because there is an error creating the pdfdocument with this image.

Regards,
Andrews

Guia de contribuição

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

Direção de pesquisa

Comece reproduzindo as duas abordagens descritas para imagens incorporadas no corpo HTML do MimeKit: caminhos file:// e URLs data:image. Rastreie a falha na criação de PDFDocument e compare-a com a renderização HTML bem-sucedida; o trabalho estará concluído quando as imagens incorporadas forem renderizadas corretamente no PDF gerado.

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
4/5
Tempo estimado
3-5 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.