Dear ALL,
I would like to ask why, when I regenerate the TOC, I lose the page numbers. I am using Spring Boot 2.7.18 and Java 11. For docx4j I am using:
<!-- https://mvnrepository.com/artifact/org. ... erenceImpl -->
<dependency>
<groupId>org.docx4j</groupId>
<artifactId>docx4j-JAXB-ReferenceImpl</artifactId>
<version>11.5.5</version>
</dependency>
Below the code I use to regenerate the TOC:
public static boolean processToc(File inputFile, File outputFile) throws Throwable {
boolean bResult = true;
try {
// Carica ...