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.
It is currently Thu Jun 19, 2025 2:56 am
Table des matières
Approbation du procès-verbal du Bureau du 00 mois 0000 (N°000) 4
Situation générale et financière 5
Exemple de Chapitre 6
Exemple de Section 6
Questions diverses 7
public static STDocProtect getProtectionType(MainDocumentPart mdp) throws Docx4JException {
DocumentSettingsPart ds = mdp.getDocumentSettingsPart();
CTSettings cs = ds.getContents();
CTDocProtect cp = cs.getDocumentProtection();
return cp.getEdit();
}
<module name="javax.xml.bind.api"/>
<module name="javax.xml.stream.api"/>
<module name="com.github.relaxng"/>
<module name="com.sun.istack"/>
<module name="com.sun.xml.txw2"/>
<module name="com.sun.xsom"/>
<module name="com.sun.xml.bind"/>
Total posts 10181 • Total topics 2864 • Total members 2095