- Code: Select all
documentPart.getContents().getBody().getContent().add(2, getTocParaUsingDocx4j());
However, I am not able to add TOC in second page?
It is currently Fri Jul 04, 2025 6:50 pm
documentPart.getContents().getBody().getContent().add(2, getTocParaUsingDocx4j());
getMainDocumentPart().addAltChunk(AltChunkType.Xhtml, xhtml.getBytes(), cell);
td
{
line-height: 1.0;
}
Total posts 10181 • Total topics 2864 • Total members 2095