When I do:
- Code: Select all
FootnotesPart fnp = new FootnotesPart(new PartName("/word/footnotes.xml"));
fnp.setJaxbElement ( org.docx4j.jaxb.Context.getWmlObjectFactory().createCTFootnotes() );
and then add to a package, I get this a big <w:footnotes ... > XML
But the footnotes I copied from another document did not work. If I had a footnotespart already created in the document, it works. So, I compared to see the differences.
If I add only this one attribute ...