ArthurHub / ArthurHub/HTML-Renderer
I got an 'System.InvalidOperationException' and message 'Cannot save a PDF document with no pages.'
- 主要语言
- 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)```
贡献指南
这个仓库没有索引到贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100