Package com.itextpdf.layout.tagging
Class ProhibitedTagRelationsResolver
java.lang.Object
com.itextpdf.layout.tagging.ProhibitedTagRelationsResolver
This class is used to resolve prohibited relations between parent and child tags.
-
Constructor Summary
ConstructorsConstructorDescriptionProhibitedTagRelationsResolver
(PdfDocument pdfDocument) Creates a new instance ofProhibitedTagRelationsResolver
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
overwriteTaggingRule
(String parentRole, String childRole, String newRole) Overwrites tagging rule if it already exists.void
repairTagStructure
(LayoutTaggingHelper taggingHelper, IRenderer topRender) Resolves prohibited relations between parent and child tags.
-
Constructor Details
-
ProhibitedTagRelationsResolver
Creates a new instance ofProhibitedTagRelationsResolver
.- Parameters:
-
pdfDocument
- the document to be processed.
-
-
Method Details
-
repairTagStructure
Resolves prohibited relations between parent and child tags.- Parameters:
-
taggingHelper
- the tagging helper. -
topRender
- the top renderer.
-
overwriteTaggingRule
Overwrites tagging rule if it already exists. Otherwise, adds the new rule.- Parameters:
-
parentRole
- The parent role. -
childRole
- The child role. -
newRole
- The new role the child should have.
-