I am new to Jasper and been trying to generate a PDF file with Spring boot using jasper templates. In my template design I have a small table like structure basically made using frames and textboxes. The problem is that when the PDF is generated, there's an extra blank space at the end of the table. Sometimes a part of the text is jumping to the next page, and there's empty space above and below the text portion i the new page. I've tried changing the properties of the text field, the enclosing frame and even the detail band but the whitespace is still there. I've added screenshots of both instances. How can I remove this empty space?
When table is in one page: https://imgur.com/WY5ki9s
When table extends to the next page: https://imgur.com/FbP7BGV