Class CssContext

java.lang.Object
com.itextpdf.styledxmlparser.css.resolve.AbstractCssContext
com.itextpdf.html2pdf.css.resolve.CssContext

public class CssContext extends com.itextpdf.styledxmlparser.css.resolve.AbstractCssContext
Class that bundles all the CSS context properties.
  • Constructor Details

    • CssContext

      public CssContext()
  • Method Details

    • getRootFontSize

      public float getRootFontSize()
      Gets the root font size.
      Returns:
      the root font size in pt
    • setRootFontSize

      public void setRootFontSize (float fontSize)
      Sets the root font size.
      Parameters:
      fontSize - the new root font size
    • setRootFontSize

      public void setRootFontSize (String fontSizeStr)
      Sets the root font size.
      Parameters:
      fontSizeStr - the new root font size
    • getCounterManager

      public CssCounterManager getCounterManager()
      Gets the counter manager.
      Returns:
      the counter manager
    • setPagesCounterPresent

      public void setPagesCounterPresent (boolean pagesCounterOrTargetCounterPresent)
      Sets the presence of a pages counter or page(s) target counter.
      Parameters:
      pagesCounterOrTargetCounterPresent - the new pages counter or page(s) target-counter present
    • isPagesCounterPresent

      public boolean isPagesCounterPresent()
      Checks if a pages counter or page(s) target-counter is present.
      Returns:
      true, if pages counter or page(s) target-counter present
    • setNonPagesTargetCounterPresent

      public void setNonPagesTargetCounterPresent (boolean nonPagesTargetCounterPresent)
      Sets the presence of a non-page(s) target-counter(s).
      Parameters:
      nonPagesTargetCounterPresent - the new non-page(s) target-counter(s) present
    • isNonPagesTargetCounterPresent

      public boolean isNonPagesTargetCounterPresent()
      Checks if a non-page(s) target-counter(s) is present.
      Returns:
      true, if non-page(s) target-counter(s) present
    • getRunningManager

      public CssRunningManager getRunningManager()