Is your feature request related to a problem? Please describe.
There should be a way to tell the module to initiate page breaks dynamically based on the content. This helps if repeated non-static content is being rendered.
Describe the solution you'd like
This should be a javascript running on the chrome renderer doing the following:
Get max available height by config (for A4 with default scale 1 could be the default)
Get a CSS selector by config to identify repeated items
Iterate over all found items, calculate height and reduce max available height
Once max available height reaches 0 or falls below it, give the last item page-break-after: always and a class (e.g. splits-pages)
The class allows custom style to adjust the style of the item itself or the next sibling
Reset max available height and continue
Once all items are processed, it should signal the module somehow to initiate the printing process
Is your feature request related to a problem? Please describe.
There should be a way to tell the module to initiate page breaks dynamically based on the content. This helps if repeated non-static content is being rendered.
Describe the solution you'd like
This should be a javascript running on the chrome renderer doing the following:
page-break-after: always
and a class (e.g.splits-pages
)