Class AccessiblePropHelper

java.lang.Object
com.itextpdf.html2pdf.attach.util.AccessiblePropHelper

public class AccessiblePropHelper extends Object
Utility class to set lang attribute.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    trySetLangAttribute(com.itextpdf.layout.tagging.IAccessibleElement accessibleElement, com.itextpdf.styledxmlparser.node.IElementNode element)
    Set language attribute in elements accessibility properties if it is not set, does nothing otherwise.
    static void
    trySetLangAttribute(com.itextpdf.layout.tagging.IAccessibleElement accessibleElement, String lang)
    Set language attribute in elements accessibility properties if it is not set, does nothing otherwise.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AccessiblePropHelper

      public AccessiblePropHelper()
  • Method Details

    • trySetLangAttribute

      public static void trySetLangAttribute (com.itextpdf.layout.tagging.IAccessibleElement accessibleElement, com.itextpdf.styledxmlparser.node.IElementNode element)
      Set language attribute in elements accessibility properties if it is not set, does nothing otherwise.
      Parameters:
      accessibleElement - pdf element to set language property on
      element - html element from which lang property will be extracted
    • trySetLangAttribute

      public static void trySetLangAttribute (com.itextpdf.layout.tagging.IAccessibleElement accessibleElement, String lang)
      Set language attribute in elements accessibility properties if it is not set, does nothing otherwise.
      Parameters:
      accessibleElement - pdf element to set language property on
      lang - language to set