Class StyleSheet
java.lang.Object
com.itextpdf.text.html.simpleparser.StyleSheet
Deprecated.
since 5.5.2
Old class to define styles for HTMLWorker.
We've completely rewritten HTML to PDF functionality; see project XML Worker.
XML Worker is able to parse CSS files and "style" attribute values.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStyle(String tag, Map<String, String> attrs) Deprecated.Resolves the styles based on the tag name and the value of the class attribute.voidDeprecated.Adds an extra style key-value pair to the styles Map of a specific tagvoidDeprecated.Associates a Map containing styles with a class name.voidloadTagStyle(String tag, String key, String value) Deprecated.Adds an extra style key-value pair to the styles Map of a specific tagvoidloadTagStyle(String tag, Map<String, String> attrs) Deprecated.Associates a Map containing styles with a tag.static voidresolveStyleAttribute(Map<String, String> h, ChainedProperties chain) Deprecated.Method contributed by Lubos Strapko
-
Field Details
-
tagMap
-
classMap
-
-
Constructor Details
-
StyleSheet
public StyleSheet()Deprecated.Creates a new instance of StyleSheet
-
-
Method Details
-
loadTagStyle
-
loadTagStyle
-
loadStyle
-
loadStyle
-
applyStyle
-
resolveStyleAttribute
Deprecated.Method contributed by Lubos Strapko- Parameters:
h-chain-- Since:
- 2.1.3
-