Class Containerization
java.lang.Object
org.docx4j.convert.out.common.preprocess.Containerization
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidgroupAdjacentBorders(List<Object> content) static voidprocess(WordprocessingMLPackage wmlPackage)
-
Field Details
-
TAG_SHADING
- See Also:
-
TAG_BORDERS
- See Also:
-
TAG_RPR
- See Also:
-
-
Constructor Details
-
Containerization
public Containerization()
-
-
Method Details
-
process
-
groupAdjacentBorders
-