I'm printing HTML as PDF using PrinceXML.
I often print a series of images, some large and some small.
When I do this, I'd like to start with the largest image that will fit in the remaining space on the page.
How can I determine how much space is left before the end of the page?
Ideally using CSS supported by PrinceXML, though I understand JavaScript may be necessary.