This is your 3. or 4. question regarding that issue.
set header and footer using java POI[
^]
I explained that you should check out the documentation there. The documentation gives you 3 Enum values:
static org.openxmlformats.schemas.wordprocessingml.x2006.main.STHdrFtr.Enum.DEFAULT
static org.openxmlformats.schemas.wordprocessingml.x2006.main.STHdrFtr.Enum.EVEN
static org.openxmlformats.schemas.wordprocessingml.x2006.main.STHdrFtr.Enum.FIRST
Choose one from these:
Enum oEnum = org.openxmlformats.schemas.wordprocessingml.x2006.main.STHdrFtr.Enum;
hfPolicy.createFooter(oEnum.DEFAULT);