Package org.docx4j.model.structure
Class HeaderFooterPolicy
java.lang.Object
org.docx4j.model.structure.HeaderFooterPolicy
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHeaderFooterPolicy(SectPr sectPr, HeaderFooterPolicy previousHF, RelationshipsPart rels, BooleanDefaultTrue evenAndOddHeaders) Figures out the policy for the given section, and creates any header and footer objects as required. -
Method Summary
Modifier and TypeMethodDescriptionIf an even footer is present this is the odd footer otherwise it is both, even and odd footerIf an even header is present this is the odd header otherwise it is both, even and odd headergetFooter(int pageNumber) Get the footer that applies to the given (1 based) page.getHeader(int pageNumber) Get the header that applies to the given (1 based) page.
-
Field Details
-
log
protected static org.slf4j.Logger log
-
-
Constructor Details
-
Method Details
-
getFirstHeader
-
getEvenHeader
-
getDefaultHeader
If an even header is present this is the odd header otherwise it is both, even and odd header -
getHeader
Get the header that applies to the given (1 based) page.- Parameters:
pageNumber- The one based page number
-