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 StringconvertNumberAccordingToGlyphStyle(CounterDigitsGlyphStyle glyphStyle, int number) Converts number according to given glyph style.static CounterDigitsGlyphStyleconvertStringCounterGlyphStyleToEnum(String glyphStyle) Gets enum representation of given digits glyph style.static StringgetAllNumberGlyphsForStyle(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:
-
CounterDigitsGlyphStyleequivalent of given glyph style
-