ArthurHub / ArthurHub/HTML-Renderer

Exception TheArtOfDev.HtmlRenderer.Core.HtmlContainerInt.set_PageSize

未关闭
#166 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug PDF
主要语言
C#
星标
1.4k
派生
550
平均合并
14 天 9 小时
30 天内合并 PR
1

描述

When I execute:

`PdfDocument pdf = PdfGenerator.GeneratePdf("

Hello World

This is html rendered text

", PageSize.A4);`

happens this exeception:

`Method not found: 'Void TheArtOfDev.HtmlRenderer.Core.HtmlContainerInt.set_PageSize(TheArtOfDev.HtmlRenderer.Adapters.Entities.RSize)'.`

My HtmlRenderer.PdfSharp version: 1.5.1-beta1

Because I need do a page break with :

`td { page-break-inside: avoid; }`

My PdfSharp version: 1.50.5147

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start by reproducing the GeneratePdf call from the issue with HtmlRenderer.PdfSharp 1.5.1-beta1 and PdfSharp 1.50.5147. Check the compatibility of the referenced HtmlContainerInt.PageSize setter and verify the result with the reported td { page-break-inside: avoid; } use case. Done means PDF generation no longer raises the missing-method exception while preserving the requested page-break behavior.

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp
领域
backend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。