Package com.itextpdf.html2pdf.css.util
Class CssStyleSheetAnalyzer
java.lang.Object
com.itextpdf.html2pdf.css.util.CssStyleSheetAnalyzer
Helper class to analyze the CSS stylesheet, e.g. for presence of some constructs
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckNonPagesTargetCounterPresence(com.itextpdf.styledxmlparser.css.CssStyleSheet styleSheet) Helper method to check if non-page(s) target-counter(s) is present anywhere in the CSS.static booleancheckPagesCounterPresence(com.itextpdf.styledxmlparser.css.CssStyleSheet styleSheet) Helper method to check if counter(pages) or counters(pages) is present anywhere in the CSS.
-
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:
-
truein case any non-page(s) target-counter(s) are present in CSS declarations, orfalseotherwise
-
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:
-
truein case any "pages" counters are present in CSS declarations, orfalseotherwise
-