ArthurHub / ArthurHub/HTML-Renderer

Problem render pages to pdf with images

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

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start by reproducing the two approaches described for embedded images in the MimeKit HTML body: file:// paths and data:image URLs. Trace the PDFDocument creation failure and compare it with successful HTML rendering; done means embedded images render correctly in the generated PDF.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp
Bereich
tooling
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 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.