ArthurHub / ArthurHub/HTML-Renderer

Exception TheArtOfDev.HtmlRenderer.Core.HtmlContainerInt.set_PageSize

Đang mở
#166 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug PDF
Ngôn ngữ chính
C#
Star
1.4k
Fork
550
Merge trung bình
14 ngày 9 giờ
Pull request đã merge (30 ngày)
1

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
csharp
Lĩnh vực
backend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.