- Code: Select all
documentPart.getContents().getBody().getContent().add(2, getTocParaUsingDocx4j());
However, I am not able to add TOC in second page?
It is currently Sat May 02, 2026 12:03 am
News of XHTML importdocumentPart.getContents().getBody().getContent().add(2, getTocParaUsingDocx4j());getMainDocumentPart().addAltChunk(AltChunkType.Xhtml, xhtml.getBytes(), cell);td
{
line-height: 1.0;
}Total posts 10223 • Total topics 2881 • Total members 2105