ArthurHub / ArthurHub/HTML-Renderer
Exception TheArtOfDev.HtmlRenderer.Core.HtmlContainerInt.set_PageSize
- Dominant language
- C#
- Stars
- 1.4k
- Forks
- 550
- Avg merge
- 14d 9h
- Merged PRs (30d)
- 1
Description
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
Contributor guide
No contributing guide indexed for this repository
Research direction
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.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100