Document document = new Document("input.docx");
for (int i = document.getSections().getCount() - 2; i >= 0; i--) {
document.getLastSection().prependContent(document.getSections().get(i));
…...getCount() - 2; i >= 0; i--) { document.getLastSection()...Discourse May 9, 2025, 8:20pm 2 @Crane 要在删除分节符的同时保持书签不变,您可以在合...