Class AccessiblePropHelper
java.lang.Object
com.itextpdf.html2pdf.attach.util.AccessiblePropHelper
Utility class to set lang attribute.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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
-