How can I detect if a Table will trigger a new page and conditionally do things that make the printed experience better?
For example, if I have a table that must span a page break (despite intelligent use of the break-before
/ break-inside
CSS properties), can I detect this and do something like re-render the column headers? Is there a way that I can detect the size of my output as it is rendered to understand if I'm in a page break zone, and then conditionally reform my html to accomodate?
I'm currently programming in Angular - but any JS/HTML/CSS based solution I'll be able to adapt.