Class VerticalAlignmentApplierUtil

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

public class VerticalAlignmentApplierUtil extends Object
Utilities class to apply vertical alignment values.
  • Method Details

    • applyVerticalAlignmentForCells

      public static void applyVerticalAlignmentForCells (Map<String,String> cssProps, ProcessorContext context, com.itextpdf.layout.IPropertyContainer element)
      Applies vertical alignment to cells.
      Parameters:
      cssProps - the CSS properties
      context - the processor context
      element - the element
    • applyVerticalAlignmentForBlocks

      public static void applyVerticalAlignmentForBlocks (Map<String,String> cssProps, com.itextpdf.layout.IPropertyContainer element, boolean isInlineTag)
      Apply vertical alignment to inline elements.
      Parameters:
      cssProps - the CSS properties
      element - the styles container
      isInlineTag - whether the origin is a tag that defaults to inline
    • applyVerticalAlignmentForInlines

      public static void applyVerticalAlignmentForInlines (Map<String,String> cssProps, ProcessorContext context, com.itextpdf.styledxmlparser.node.IStylesContainer stylesContainer, List childElements)
      Apply vertical alignment to inline elements.
      Parameters:
      cssProps - the CSS properties
      context - the processor context
      stylesContainer - the styles container
      childElements - the child elements