Interface CssApplier<T extends Element>

Type Parameters:
T - the type of iText element that can be customized
All Known Implementing Classes:
ChunkCssApplier, DivCssApplier, HtmlCellCssApplier, ImageCssApplier, LineSeparatorCssApplier, ListStyleTypeCssApplier, NoNewLineParagraphCssApplier, ParagraphCssApplier

public interface CssApplier<T extends Element>
An interface for applying custom rules to a certain tag. The most obvious use case is CRUD operations on XML or CSS attributes from an input document which cannot be changed.
  • Method Details

    • apply

      T apply(T e, Tag t, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx)
      Styles an element
      Parameters:
      e - the element
      t - the tag
      mm - the MarginMemory
      psc - the PageSizeContainable
      ctx - the HtmlPipelineContext
      Returns:
      a styled
      invalid reference
      Paragraph