vikrambalye / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

Detect remaining vertical page space #403

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What would you like dompdf to do:

Detect remaining vertical space on a page being rendered.

Do you have an example:

Lets say you are outputting items from a loop and each time you are ready to 
output an item you want to be able to check the remaining vertical page space 
before doing so.  If the remaining space on a page is X or less, then output 
the item on the next rendered page, otherwise output the item on the current 
page being rendered.

Original issue reported on code.google.com by bryanleb...@gmail.com on 5 Jan 2012 at 1:31

GoogleCodeExporter commented 9 years ago
Would support for page-break-inside: avoid cover your use case, or do you need 
a bit more control?

Original comment by eclecticgeek on 5 Jan 2012 at 4:41

GoogleCodeExporter commented 9 years ago
I think that would work for this case as I am just trying to avoid splitting an 
element between two pages.

Original comment by bryanleb...@gmail.com on 11 Jan 2012 at 3:34

GoogleCodeExporter commented 9 years ago
The problem about the page-break-inside is sometimes the behavior isn't that 
espect. Give some space between two element with page-break-inside:avoid 
propriets. 

How i can do more control about this ? 

Original comment by jonasfon...@mugnetic.com on 12 Jul 2012 at 8:48

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 24 May 2013 at 3:00