Class Containerization

java.lang.Object
org.docx4j.convert.out.common.preprocess.Containerization

public class Containerization
extends java.lang.Object
In Word, adjacent paragraphs with the same borders are enclosed in a single border (unless bullets/numbering apply). Similarly with shading. (If the 2 paragraphs are shaded different colors, then the color of the first extends to the start of the second, so there is no white strip between them). To do the same in HTML and PDF output, we put matching paragraphs into a content control, and set the border/shading on that. This gives us an appropriate div or fo:block.
Author:
jharrop, alberto
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String TAG_BORDERS  
    static java.lang.String TAG_RPR  
    static java.lang.String TAG_SHADING  
  • Constructor Summary

    Constructors 
    Constructor Description
    Containerization()  
  • Method Summary

    Modifier and Type Method Description
    protected static void groupAdjacentBorders​(java.util.List<java.lang.Object> content)  
    static void process​(WordprocessingMLPackage wmlPackage)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait