I'm currently using iText in a small application that generates a PDF
test paper with user-inputted questions. I'm using a long List with each question in a separate ListItem. However, sometimes, if the question is too long it will go onto the next A4 page (see attached image), which can be quite annoying when you are actually completing the test on paper.
Is there a way to detect if the next ListItem is too long is fit on the rest of the page, in which case the program should start writing on the next page?
Thank you very much!