io.github.longyg.export.HeaderFooterCreator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of html-export Show documentation
Show all versions of html-export Show documentation
Export XHTML to OpenXML WordML (docx)
package io.github.longyg.export;
import org.docx4j.jaxb.Context;
import org.docx4j.model.structure.SectionWrapper;
import org.docx4j.openpackaging.exceptions.InvalidFormatException;
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
import org.docx4j.openpackaging.parts.WordprocessingML.FooterPart;
import org.docx4j.openpackaging.parts.WordprocessingML.HeaderPart;
import org.docx4j.relationships.Relationship;
import org.docx4j.wml.*;
import java.util.List;
/**
* @author longyg
*/
public class HeaderFooterCreator {
private HeaderFooterCreator() {
}
public static void addHeaderPart(WordprocessingMLPackage wordMLPackage,
HeaderPart headerPart,
Relationship relationship,
List