ArthurHub / ArthurHub/HTML-Renderer
I got an 'System.InvalidOperationException' and message 'Cannot save a PDF document with no pages.'
- Vorherrschende Sprache
- C#
- Sterne
- 1.4k
- Forks
- 550
- Ø Merge
- 14 T. 9 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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)```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- backend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100