Is it possible when appending documents and a document shows up at the end of the first page to have it keep something like the first 5 lines together? Meaning that if a document is appended and it is at the end of the first document but there isn’t enough room for the first 5 lines that it just moves the whole document to the next page, but if there is enough room then have it put the first 5 lines there and put the 6th line on the next page? Similar to the example of keeping a table together like mentioned here .
Hi Cameron,
Thank you for the inquiry. Please note that when you append document to another, Aspose.Words copies all section from source document to the destination. Documents are appended at the section level therefore the PageSetup.SectionStart property of the Section object defines how the content of the current section is joined in relation to the previous section. For more details please visit documentation here:
https://docs.aspose.com/words/java/insert-and-append-documents/
I hope, this will help.