Package com.itextpdf.layout.renderer
Class AccessibleTypes
java.lang.Object
com.itextpdf.layout.renderer.AccessibleTypes
This class is used to identify standard structure role type based only on it's name for the sake of applying
standard structure attributes.
These types mostly resemble structure type levels in the pdf 1.7 specification, however they are not exact. In pdf 2.0 some of these types are not even present and moreover, specific roles with the same name might belong to different type levels depending on context (which consists of kids, parents and their types).
So, these types are mostly useful for the internal itext usage and are not backed by any spec. They are designed for the most part to return the value the most suitable and handy for the purposes of accessibility properties applying.
Here are the main reasons to leave these types as is for now, even after introducing of PDF 2.0:
- Standard structure types for pdf 1.7 and 2.0 are very alike. There are some differences, like new/removed roles and attributes, however they are not used in current layout auto tagging mechanism.
- Differentiating possible types for the same role based on the context is not supported at the moment.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static int
(package private) static int
(package private) static int
(package private) static int
(package private) static int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static int
identifyType
(String role) Identifies standard structure role type based only on it's name.
-
Field Details
-
Unknown
static int Unknown -
Grouping
static int Grouping -
BlockLevel
static int BlockLevel -
InlineLevel
static int InlineLevel -
Illustration
static int Illustration -
groupingRoles
-
blockLevelRoles
-
inlineLevelRoles
-
illustrationRoles
-
-
Constructor Details
-
AccessibleTypes
AccessibleTypes()
-
-
Method Details
-
identifyType
Identifies standard structure role type based only on it's name. The return types might be one of the constants: See also remarks in theAccessibleTypes
class documentation.
-