I would like to know if it is possible to add a table of content section to the "wordMLPackage" which is then exported into PDF. I know how to add it to the "wordMLPackage" to be shown in the generated Word file. But I did not succeed to actually see a table of content section in the generated PDF file. I generate the PDF as follows:
FOSettings foSettings = Docx4J.createFOSettings();
foSettings.setWmlPackage(this.wordMLPackage);
OutputStream os;
try ...