Adding hard pagebreak handling.

Adding hard pagebreak handling.