Hello.
I have a problem with ToC page numbering, it is wrong.
Even if you see on sample https://github.com/plutext/docx4j/blob/ ... ample.java, there is the mistake in 7th row of contents.
How can it be fixed? Thanks.
ObjectFactory factory = Context.getWmlObjectFactory();
MainDocumentPart documentPart = docxPackage.getMainDocumentPart();
Br breakObj = new Br();
breakObj.setType(type);
P paragraph = factory.createP();
paragraph.getContent().add(breakObj);
documentPart.getJaxbElement().getBody().getContent().add(paragraph);
Users browsing this forum: Bing [Bot] and 146 guests