Class OrphansWidowsApplierUtil

java.lang.Object
com.itextpdf.html2pdf.css.apply.util.OrphansWidowsApplierUtil

public class OrphansWidowsApplierUtil extends Object
Utilities class to apply orphans and widows properties.
  • Field Details

    • MAX_LINES_TO_MOVE

      public static final int MAX_LINES_TO_MOVE
      See Also:
    • OVERFLOW_PARAGRAPH_ON_VIOLATION

      public static final boolean OVERFLOW_PARAGRAPH_ON_VIOLATION
      See Also:
  • Method Details

    • applyOrphansAndWidows

      public static void applyOrphansAndWidows (Map<String,String> cssProps, com.itextpdf.layout.IPropertyContainer element)
      Applies orphans and widows properties to an element.
      Parameters:
      cssProps - the CSS properties
      element - to which the property will be applied.