ArthurHub / ArthurHub/HTML-Renderer
I got an 'System.InvalidOperationException' and message 'Cannot save a PDF document with no pages.'
未關閉
bug
CSS
PDF
- 主要語言
- C#
- 星號
- 1.4k
- 分支
- 550
- 平均合併
- 14 天 9 小時
- 30 天內合併 PR
- 1
描述
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)```
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
從 TheArtOfDev.HtmlRenderer.PdfSharp.PdfGenerator.GeneratePdf 開始,追蹤傳回的 PdfDocument,直到 pdf.Save(memoryStream)。使用 issue 中描述的 HTML 輸入重現空白文件失敗,然後找出未建立頁面的原因。當從包含內容的 HTML 產生的文件可以在不擲出 InvalidOperationException 的情況下儲存時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- backend
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100