Hi Team,
I need to split a doc/docx document into separate docx files based on pages.
thanks
mani
Hi Team,
I need to split a doc/docx document into separate docx files based on pages.
thanks
mani
Please refer to the following Page Splitter utility:
https://github.com/aspose-words/Aspose.Words-for-.NET
Hope, this helps.
Hi Team,
Thank You for your code. I’ve tried for splitting document using aspose-words.17.5 java version. But DocumentPageSplitter package is missing.
Could you help me, solve the problem ?
Thanks
After an initial test with Aspose.Words for Java 17.10, we were unable to reproduce this issue on our end during splitting Word documents. We would suggest you please upgrade to the latest version of Aspose.Words for Java. You can download it from the following link:
Download latest version of Aspose.Words for Java
Also, please try creating a new Java Application and use code from PageSplitter.cs. Hope, this helps.
We added new method Document.extractPages in the latest version of Aspose.Words for Java to get the specified range of pages. This method returns Document object for extracted pages. We suggest you please use this method instead of PageSplitter utility.
Following code example shows how to extract first three pages of document.
Document doc = new Document(getMyDir() + "input.docx");
doc = doc.extractPages(0, 2);
doc.save(getArtifactsDir() + "Document.ExtractPages.docx");