Class ConversionSectionWrapperFactory
java.lang.Object
org.docx4j.convert.out.common.wrappers.ConversionSectionWrapperFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static ConversionSectionWrappercreateSectionWrapper(SectPr sectPr, HeaderFooterPolicy headerFooterPolicy, RelationshipsPart rels, BooleanDefaultTrue evenAndOddHeaders, int conversionSectionIndex, List<Object> content, boolean dummyPageNumbering) static ConversionSectionWrappersprocess(WordprocessingMLPackage wmlPackage, boolean dummySections, boolean dummyPageNumbering) protected static List<ConversionSectionWrapper>processComplete(WordprocessingMLPackage wmlPackage, Document document, RelationshipsPart rels, BooleanDefaultTrue evenAndOddHeaders, boolean dummyPageNumbering) protected static List<ConversionSectionWrapper>processDummy(WordprocessingMLPackage wmlPackage, Document document, RelationshipsPart rels, BooleanDefaultTrue evenAndOddHeaders, boolean dummyPageNumbering) The dummy section wrappers only contains one section with all the document.
-
Field Details
-
log
protected static org.slf4j.Logger log
-
-
Constructor Details
-
ConversionSectionWrapperFactory
public ConversionSectionWrapperFactory()
-
-
Method Details
-
process
public static ConversionSectionWrappers process(WordprocessingMLPackage wmlPackage, boolean dummySections, boolean dummyPageNumbering) throws Docx4JException - Throws:
Docx4JException
-
processDummy
protected static List<ConversionSectionWrapper> processDummy(WordprocessingMLPackage wmlPackage, Document document, RelationshipsPart rels, BooleanDefaultTrue evenAndOddHeaders, boolean dummyPageNumbering) The dummy section wrappers only contains one section with all the document. Therefore any sections within the document are ignored in the conversion process. As it doesn't need to check for sections it is faster and the html-Output only uses one section.
It will use the Header/Footer of the body sectPr. This isn't correct, if there are several Sections in the document, but to find the correct SectPr it would need to check the document content - and the aim of this method is a low overhead.- Parameters:
wmlPackage-dummyPageNumbering-- Returns:
-
processComplete
protected static List<ConversionSectionWrapper> processComplete(WordprocessingMLPackage wmlPackage, Document document, RelationshipsPart rels, BooleanDefaultTrue evenAndOddHeaders, boolean dummyPageNumbering)
-