Split Word Document into Multiple Files using Java | Extract Content Between Nodes & Paragraphs based on Styles

Hi Team
I need to split the single document into multiple documents using java. Splitting can be done in any valid ways. Kindly provide some solution .
Thanks.

@jan.kathir,

Do you use Aspose.Words API for the task? Could you zip your input MS Word document and your expected documents and attach the zipped archive (you may use MS Word to create your expected documents). This will help us to know your requirements and we can provide better help and sample code for your needs.

Thanks for your response.
You can take any doc or docx file as example .here we need to split the single document into multiple documents ,splitting can be made by any valid ways (eg. splitting by page ,splitting by page range ,etc…) .there are few code for splitting the document using .net but i can’t find using java so please help me out in splitting using java.
Thanks.

@jan.kathir,

Please check the following Java example code to split Word document into Pages:

I had attached a input document ,in between i had manually mentioned [splioutput.zip (319.9 KB)
t1] as user defined style based on this style i need to split the document .i had attached required output also please check and provide the solution .Thanks
Input::MCCM-D-20-00012.zip (304.4 KB)

Output::output.zip (319.9 KB)

Sorry something went wrong…

I had attached a input document ,in between i had manually mentioned [split1] as user defined style based on this style i need to split the document .i had attached required output also please check and provide the solution .Thanks
Input::MCCM-D-20-00012.zip (304.4 KB)

Output::output.zip (319.9 KB)

@jan.kathir,

I believe, you can meet this requirement by using the codes from the following sections of documentation:

Please let us know if you have any troubles and we will be glad to look into this further for you.