Class HeadingsChecker
java.lang.Object
com.itextpdf.pdfua.checkers.utils.headings.HeadingsChecker
Utility class which performs headings check according to PDF/UA specification.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Handler class that checks heading tags while traversing the tag tree. -
Constructor Summary
ConstructorDescriptionHeadingsChecker
(PdfUAValidationContext context) Creates a new instance ofHeadingsChecker
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkLayoutElement
(IRenderer renderer) Checks if layout element has correct heading.void
checkStructElement
(IStructureNode structNode) Checks if structure element has correct heading.
-
Constructor Details
-
HeadingsChecker
Creates a new instance ofHeadingsChecker
.- Parameters:
-
context
- The validation context.
-
-
Method Details
-
checkLayoutElement
Checks if layout element has correct heading.- Parameters:
-
renderer
- layout element to check - Throws:
-
PdfUAConformanceException
- if headings sequence is incorrect
-
checkStructElement
Checks if structure element has correct heading.- Parameters:
-
structNode
- structure element to check - Throws:
-
PdfUAConformanceException
- if headings sequence is incorrect
-