I have an extra blank space, appearing as a paragraph tag at the end of the document. In some cases, the document is filled with characters until the end of any page, and while downloading any such documents, users are seeing an extra blank page at the end of the file. That is, the extra space placed on the new page, but actually, it is a blank page.
This is happening irrespective of the document format i.e., word or pdf. However, we have rectified this issue in the word document by removing the extra blank pages. That is, by checking the last child node of the last paragraph of the last section in the body. Unfortunately, the same logic doesn’t work out for PDF formats.
Do we have any other procedures to remove the blank pages in the PDF format? We are using a Java-based application. Any bits of help or ideas are highly appreciated!