ArthurHub / ArthurHub/HTML-Renderer

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

Aperta
#102 9 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug CSS PDF
Lingua principale
C#
Stelle
1.4k
Fork
550
Merge medio
14g 9h
PR unite (30g)
1

Descrizione

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)```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
backend
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.