Thank you Andrey and Adam for the reply. I did glance at the sample code but not sure if it would work for what I am looking for.
We actually have three different things that I need to find end of page for.
1) If there is any page where the text does not fill more than half the page, then we need to put a message in the blank area " INTENTIONALLY LEFT BLANK"
2) If a table is going to overflow into the next page, then make sure to place the whole table in the next page.
3) In a different case if the table overflows in the next page, add a para to the top of each page where the table will have rows.
In both 2 and 3 I would know how many rows are going to be inserted before I start inserting them, but would not know whats the current cursor position relative to the page itself.
I think there is a crude way I can do this by monitoring everything in my code, as I would know from the template docs as to where my tables will begin and end, but that code will not be very scalable to changes in the templates.Was hoping there was something to monitor at the page level itself.