Free Support Forum - aspose.com

Aspose.Words on Java, replacing section break by page break

After joining the two documents, I have Section Break (Next Page) between joined documents, but I need to have Page Break. How can this be done?

@just_vic,

Thanks for your inquiry. In your case, we suggest you following solution.

  1. Move the cursor to the end of source document.
  2. Insert the page break using DocumentBuilder.InsertBreak.
  3. Insert the other document that you want to insert into source document using DocumentBuilder.InsertDocument method.