ArthurHub / ArthurHub/HTML-Renderer

I got an 'System.InvalidOperationException' and message 'Cannot save a PDF document with no pages.'

Ouverte
#102 9 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug CSS PDF
Langage dominant
C#
Étoiles
1.4k
Forks
550
Merge moyen
14 j 9 h
PR mergées (30 j)
1

Description

I generate a PdfDocument with ```TheArtOfDev.HtmlRenderer.PdfSharp.PdfGenerator.GeneratePdf(html, PdfSharp.PageSize.Letter)```, and the html has contents, but the PdfDocument is empty and cause a 'System.InvalidOperationException' when i save the document by ```pdf.Save(memoryStream)```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Start at TheArtOfDev.HtmlRenderer.PdfSharp.PdfGenerator.GeneratePdf and follow the returned PdfDocument through pdf.Save(memoryStream). Reproduce the empty-document failure with the HTML input described in the issue, then identify why no pages are created. Done means a document generated from HTML with contents can be saved without the InvalidOperationException.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
csharp
Domaine
backend
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.