title: Why is my content overlapping with my footer?
body: <p>I am using itextsharp to generate pdf ...i m getting problem is my content/text coming upon footer...i want to automatically break down content to new page...if it comes upon footer..</p>
  
  <p>right now i m using document.newpage()</p>
  
  <p>but i want to do it automatically that my page /content automatically breakdown to new page..it should not come to header/footer of page...</p>
  
  <p>FOr Information i create header/footer through this class</p>
  
  <pre><code>public class ITextEvents : PdfPageEventHelper
  </code></pre>
  
  <p>and i used this function</p>
  
  <pre><code>public override void OnEndPage
  </code></pre>
  
  <p>I m attaching also the result that i m getting right now...
  please help me on this...i can share more information if you ask in comments</p>
  
  <p><a href="https://i.stack.imgur.com/oVuY6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oVuY6.png" alt="enter image description here"></a></p>
  
  <p>i want this last box to come automatically to new  page.....</p>