Class ProhibitedTagRelationsResolver

java.lang.Object
com.itextpdf.layout.tagging.ProhibitedTagRelationsResolver

public class ProhibitedTagRelationsResolver extends Object
This class is used to resolve prohibited relations between parent and child tags.
  • Constructor Details

    • ProhibitedTagRelationsResolver

      public ProhibitedTagRelationsResolver (PdfDocument pdfDocument)
      Creates a new instance of ProhibitedTagRelationsResolver.
      Parameters:
      pdfDocument - the document to be processed.
  • Method Details

    • repairTagStructure

      public void repairTagStructure (LayoutTaggingHelper taggingHelper, IRenderer topRender)
      Resolves prohibited relations between parent and child tags.
      Parameters:
      taggingHelper - the tagging helper.
      topRender - the top renderer.
    • overwriteTaggingRule

      public void overwriteTaggingRule (String parentRole, String childRole, String newRole)
      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.