Class CssStyleSheetAnalyzer

java.lang.Object
com.itextpdf.html2pdf.css.util.CssStyleSheetAnalyzer

public class CssStyleSheetAnalyzer extends Object
Helper class to analyze the CSS stylesheet, e.g. for presence of some constructs
  • Method Details

    • checkNonPagesTargetCounterPresence

      public static boolean checkNonPagesTargetCounterPresence (com.itextpdf.styledxmlparser.css.CssStyleSheet styleSheet)
      Helper method to check if non-page(s) target-counter(s) is present anywhere in the CSS. If presence is detected, it may require additional treatment
      Parameters:
      styleSheet - CSS stylesheet to analyze
      Returns:
      true in case any non-page(s) target-counter(s) are present in CSS declarations, or false otherwise
    • checkPagesCounterPresence

      public static boolean checkPagesCounterPresence (com.itextpdf.styledxmlparser.css.CssStyleSheet styleSheet)
      Helper method to check if counter(pages) or counters(pages) is present anywhere in the CSS. If the presence is detected, it may require additional treatment
      Parameters:
      styleSheet - CSS stylesheet to analyze
      Returns:
      true in case any "pages" counters are present in CSS declarations, or false otherwise