public abstract class AccessibilityProperties extends Object
structure elements
in Tagged PDF documents via TagTreePointer
API.
Constructor and Description |
---|
AccessibilityProperties() |
Modifier and Type | Method and Description |
---|---|
AccessibilityProperties |
addAttributes(int index, PdfStructureAttributes attributes)
Adds the attributes to the element with specified index.
|
AccessibilityProperties |
addAttributes(PdfStructureAttributes attributes)
Adds the attributes to the element.
|
AccessibilityProperties |
addRef(TagTreePointer treePointer)
Adds the reference to other tagged element.
|
AccessibilityProperties |
clearAttributes()
Clears the list of attributes.
|
AccessibilityProperties |
clearRefs()
Clears the list of references to other tagged elements.
|
String |
getActualText()
Gets the actual text of element.
|
String |
getAlternateDescription()
Gets the alternate description of element.
|
List<PdfStructureAttributes> |
getAttributesList()
Gets the attributes list.
|
String |
getExpansion()
Gets the expansion of element.
|
String |
getLanguage()
Gets the language identifier of element.
|
PdfNamespace |
getNamespace()
Gets the namespace of element.
|
String |
getPhoneme()
Gets the phoneme of element.
|
String |
getPhoneticAlphabet()
Gets the phonetic alphabet of element.
|
List<TagTreePointer> |
getRefsList()
Gets the list of references to other tagged elements.
|
String |
getRole()
Gets the role of element.
|
AccessibilityProperties |
setActualText(String actualText)
Sets the actual text of element.
|
AccessibilityProperties |
setAlternateDescription(String alternateDescription)
Sets the alternate description of element.
|
AccessibilityProperties |
setExpansion(String expansion)
Sets the expansion of element.
|
AccessibilityProperties |
setLanguage(String language)
Sets the language identifier of element.
|
AccessibilityProperties |
setNamespace(PdfNamespace namespace)
Sets the namespace of element.
|
AccessibilityProperties |
setPhoneme(String phoneme)
Sets the phoneme of element.
|
AccessibilityProperties |
setPhoneticAlphabet(String phoneticAlphabet)
Sets the phonetic alphabet of element.
|
AccessibilityProperties |
setRole(String role)
Sets the role of element.
|
public String getRole()
See also StandardRoles
.
public AccessibilityProperties setRole(String role)
See also StandardRoles
.
Calling this method with a null argument will make the tagging on the associated layout element "neutral". The effect is that all children of the layout element will be tagged as if they were direct children of the parent element.
role
- the role to be set
AccessibilityProperties
instance
public String getLanguage()
For more information see PDF Specification ISO 32000-1 section 14.9.2.
public AccessibilityProperties setLanguage(String language)
For more information see PDF Specification ISO 32000-1 section 14.9.2.
language
- the language to be set
AccessibilityProperties
instance
public String getActualText()
public AccessibilityProperties setActualText(String actualText)
actualText
- the actual text to be set
AccessibilityProperties
instance
public String getAlternateDescription()
public AccessibilityProperties setAlternateDescription(String alternateDescription)
alternateDescription
- the alternation description to be set
AccessibilityProperties
instance
public String getExpansion()
Expansion it is the expanded form of an abbreviation of structure element.
public AccessibilityProperties setExpansion(String expansion)
Expansion it is the expanded form of an abbreviation of structure element.
expansion
- the expansion to be set
AccessibilityProperties
instance
public String getPhoneme()
For more information see PdfStructElem.setPhoneme(PdfString)
.
public AccessibilityProperties setPhoneme(String phoneme)
For more information see PdfStructElem.setPhoneme(PdfString)
.
phoneme
- the phoneme to be set
AccessibilityProperties
instance
public String getPhoneticAlphabet()
For more information see PdfStructElem.setPhoneticAlphabet(PdfName)
.
public AccessibilityProperties setPhoneticAlphabet(String phoneticAlphabet)
For more information see PdfStructElem.setPhoneticAlphabet(PdfName)
.
phoneticAlphabet
- the phonetic alphabet to be set
AccessibilityProperties
instance
public PdfNamespace getNamespace()
public AccessibilityProperties setNamespace(PdfNamespace namespace)
namespace
- the namespace to be set
AccessibilityProperties
instance
public AccessibilityProperties addRef(TagTreePointer treePointer)
For more information see PdfStructElem.addRef(PdfStructElem)
.
treePointer
- the reference to be set
AccessibilityProperties
instance
public List<TagTreePointer> getRefsList()
For more information see PdfStructElem.addRef(PdfStructElem)
.
public AccessibilityProperties clearRefs()
For more information see PdfStructElem.addRef(PdfStructElem)
.
AccessibilityProperties
instance
public AccessibilityProperties addAttributes(PdfStructureAttributes attributes)
attributes
- the attributes to be added
AccessibilityProperties
instance
public AccessibilityProperties addAttributes(int index, PdfStructureAttributes attributes)
If an attribute with the same O and NS entries is specified more than once, the later (in array order) entry shall take precedence. For more information see PDF Specification ISO-32000 section 14.7.6.
index
- the attributes index
attributes
- the attributes to be added
AccessibilityProperties
instance
public AccessibilityProperties clearAttributes()
AccessibilityProperties
instance
public List<PdfStructureAttributes> getAttributesList()
Copyright © 1998–2022 iText Group NV. All rights reserved.