Free Support Forum - groupdocs.com

Split Word document programmatically in Java

Hello,sir,
I use merger.split() to split a document into four small documents,Four files were successfully splited, but the first three documents have no content and the fourth was binary codeSplitedFile.zip (32.6 KB).
My code:
image.png (18.8 KB),I don’t know where the problem is. I use groupdocs-merger-19.12.jar.

Any suggestions would be greatly appreciated

1 Like

@YvanZhang,

Please share following details and we’ll investigate this scenario:

  • Sample/source document
  • Are you evaluating the API without license? If yes, we’d recommend you to get a temporary license here. This Wizard.zip (152.9 KB) will help you in getting the temporary license.

@atirtahir3
source document sample-10-pages.zip (10.1 KB)

I have applied for a temporary license and used in the project.
image.png (3.8 KB)

@atirtahir3 I found the solution to the problem,Thank you very much !

1 Like

@YvanZhang,

You’re welcome.