Class ConversionSectionWrapperFactory

java.lang.Object
org.docx4j.convert.out.common.wrappers.ConversionSectionWrapperFactory

public class ConversionSectionWrapperFactory
extends java.lang.Object
  • 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 java.util.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:
    • createSectionWrapper

      protected static ConversionSectionWrapper createSectionWrapper​(SectPr sectPr, HeaderFooterPolicy headerFooterPolicy, RelationshipsPart rels, BooleanDefaultTrue evenAndOddHeaders, int conversionSectionIndex, java.util.List<java.lang.Object> content, boolean dummyPageNumbering)
      Parameters:
      sectPr -
      headerFooterPolicy -
      rels -
      evenAndOddHeaders - from the document settings part
      conversionSectionIndex -
      content -
      dummyPageNumbering -
      Returns:
    • processComplete

      protected static java.util.List<ConversionSectionWrapper> processComplete​(WordprocessingMLPackage wmlPackage, Document document, RelationshipsPart rels, BooleanDefaultTrue evenAndOddHeaders, boolean dummyPageNumbering)