Thanks for your inquiry. You can get/extract specific page using Aspose.Words and perform mail merge using modified data.
If you want to extract specific page from Word document, you can achieve this using the “PageSplitter” example project. You can find PageSplitter code in Aspose.Words for Java examples repository at GitHub
. Please check following code example for your kind reference.
If this does not help you, please share some more detail about your query along with input and expected output documents. We will then provide you more information about your query along with code.
//Load the document<o:p></o:p>
Document doc = new Document(MyDir + "in.docx");
// Create and attach collector to
the document before page layout is built.
LayoutCollector layoutCollector = new
// Split nodes in the document into
DocumentPageSplitter splitter = new
//Get the first page of document
Document newDoc =
newDoc.save(MyDir + "Out.docx");