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 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.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.
-
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, orfalse
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, orfalse
otherwise
-