Restart bullets

Hi, I’m using appendDocument to merge different word documents. I saw below code which can be used to restart bullet numbering at each section.

list.isRestartAtEachSection(true);

Is there a way to restart numbering after specific section in the output while we’re merging different documents?

@sagarsach No, unfortunately, there is no no way to restart numbering in the list after the certain section. But if it is required to keep the source document numbering after merging documents, you can use ImportFormatOptions.KeepSourceNumbering.

Also, you can try using Merger class to merge documents and specify MergeFormatMode.KEEP_SOURCE_LAYOUT.

Okay, Thanks for the help!!

1 Like