title: How to fix the number of rows while designing pdf using iText in java
body: <p>I am creating one pdf file showing a list of all employees and their salaries. At the end of the page it is showing the total of all salaries.</p>
  
  <p>I am using a for loop to add multiple rows to table.</p>
  
  <p>The problem is:
  at the end the row, the total salary doesn't fit on the same page and it is shown on the next page.</p>
  
  <p>So is there any way that I can calculate the height of the page and then fix the height of each cell? And then accordingly, limit the number of rows.</p>
  
  <p>So that at the end of the page, I can show the total number of rows and further record from next page.</p>