Free Support Forum -

Split Word document programmatically in Java

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 (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


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 (152.9 KB) will help you in getting the temporary license.

source document (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


You’re welcome.