Class ParagraphStylesInTableFix

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

public class ParagraphStylesInTableFix
extends java.lang.Object
A typical case this would fix is where the spacing between paragraphs is wrong in the PDF|XHTML output (because that is set in DocDefaults). In a cell, a paragraph uses the table's paragraph properties, plus the relevant paragraph style (Normal, by default). The relevant paragraph style trumps the values from the table's paragraph properties, so that would mean giving the doc defaults (which we've made part of our styles) priority over the table's paragraph properties, which is wrong. TO avoid this, this preprocessor creates a new style, which encapsulates the paragraph style, with DocDefaults given lower priority than table style. This created style has no w:basedOn setting. This preprocessor is required if paragraphs in tables are being styled incorrectly.
Since:
3.0.2
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  ParagraphStylesInTableFix.StyleRenamer  
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected static org.slf4j.Logger log  
  • Constructor Summary

    Constructors 
    Constructor Description
    ParagraphStylesInTableFix()  
  • Method Summary

    Modifier and Type Method Description
    static void process​(WordprocessingMLPackage wmlPackage)  

    Methods inherited from class java.lang.Object

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