Class HtmlUtils

java.lang.Object
com.itextpdf.html2pdf.html.HtmlUtils

public final class HtmlUtils extends Object
Utilities class with HTML-related functionality.
  • 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

      public static String getAllNumberGlyphsForStyle (CounterDigitsGlyphStyle glyphStyle)
      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

      public static CounterDigitsGlyphStyle convertStringCounterGlyphStyleToEnum (String glyphStyle)
      Gets enum representation of given digits glyph style.
      Parameters:
      glyphStyle - style of the glyphs
      Returns:
      CounterDigitsGlyphStyle equivalent of given glyph style