@Override
protected void appendDocumentFooter(
HTMLConversionContext conversionContext, Document document,
Element documentRoot) throws Docx4JException {
MainDocumentPart mainDocumentPart = conversionContext.getWmlPackage().getMainDocumentPart();
if (mainDocumentPart.hasFootnotesPart()) {
appendFootnotesEndnotes(
conversionContext, document,
documentRoot,
"footnotes",
mainDocumentPart.getFootnotesPart(),
mainDocumentPart.getFootnotesPart().getJaxbElement().getFootnote());
}
if (mainDocumentPart.hasEndnotesPart()) {
appendFootnotesEndnotes(
conversionContext, document,
documentRoot,
"endnotes",
mainDocumentPart.getEndNotesPart(),
mainDocumentPart.getEndNotesPart().getJaxbElement().getEndnote());
}
}