Package com.itextpdf.html2pdf.html
Class HtmlUtils
java.lang.Object
com.itextpdf.html2pdf.html.HtmlUtils
Utilities class with HTML-related functionality.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
convertNumberAccordingToGlyphStyle
(CounterDigitsGlyphStyle glyphStyle, int number) Converts number according to given glyph style.static CounterDigitsGlyphStyle
convertStringCounterGlyphStyleToEnum
(String glyphStyle) Gets enum representation of given digits glyph style.static String
getAllNumberGlyphsForStyle
(CounterDigitsGlyphStyle glyphStyle) Gets a string which contains all glyphs which can be used in number according to given glyph style.
-
Method Details
-
convertNumberAccordingToGlyphStyle
public static String convertNumberAccordingToGlyphStyle(CounterDigitsGlyphStyle glyphStyle, int number) Converts number according to given glyph style.- Parameters:
-
glyphStyle
- style of the glyphs -
number
- number to be converted - Returns:
- converted number
-
getAllNumberGlyphsForStyle
Gets a string which contains all glyphs which can be used in number according to given glyph style.- Parameters:
-
glyphStyle
- style of the glyphs - Returns:
- string of all number glyphs
-
convertStringCounterGlyphStyleToEnum
Gets enum representation of given digits glyph style.- Parameters:
-
glyphStyle
- style of the glyphs - Returns:
-
CounterDigitsGlyphStyle
equivalent of given glyph style
-