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
Nested ClassesModifier and TypeClassDescriptionstatic classHandler class that checks heading tags while traversing the tag tree. -
Constructor Summary
ConstructorsConstructorDescriptionHeadingsChecker(PdfUAValidationContext context) Creates a new instance ofHeadingsChecker. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckLayoutElement(IRenderer renderer) Checks if layout element has correct heading.voidcheckStructElement(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
-