dart_pdf icon indicating copy to clipboard operation
dart_pdf copied to clipboard

Please implement a feature that allows large widgets to break across multiple pages automatically

Open alihassan143 opened this issue 1 year ago • 3 comments

Please implement a feature that allows large widgets to break across multiple pages automatically. This will ensure that content is properly rendered and displayed, regardless of size, and improve support for a variety of scenarios where dynamic or large content needs to be shown across multiple pages.

alihassan143 avatar Oct 13 '24 17:10 alihassan143

Currently, the PDF rendering in the application only supports a single widget per page. If the widget’s content exceeds the available space on the page, it does not automatically split and flow onto the next page. This results in the widget either being cut off or compressed to fit the page, which is not ideal for larger content.

alihassan143 avatar Oct 13 '24 17:10 alihassan143

Actually @alihassan143 its worse than that, I just ran into the situation where adding an image that's too high (over 715px high to a document set to a4) will actually cause an infinite loop that rapidly consumes process ram until memory exhaustion :-( .

I actually stumbled across it using your htmltopdfwidgets just having a single html page with an image that's over the above height, should be easy to reproduce.

maks avatar Mar 08 '25 09:03 maks

This issue seems to be related to this also: #1471

maks avatar Mar 08 '25 09:03 maks