enter image description here

I want to find remaining page space for my content. If content cannot comes fit in the page then I want to move the content next page.

Actually i am showing wordpress posts. In the below image the circle is one post but some part is upper and some below page. but I want all this in the below page.
I am using mpdf.

Read more here: How to find remaining page space using mpdf


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: