0

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.

steven_noble
  • 4,133
  • 10
  • 44
  • 77

1 Answers1

0

How about you obtain the height of the document and substract all other elements height above it.

pseudo format : total html document height -(your pdf/html height + header height+other element with height above page)

Suman KC
  • 3,478
  • 4
  • 30
  • 42