Class PdfUA1HeadingsChecker
java.lang.Object
com.itextpdf.pdfua.checkers.utils.ua1.PdfUA1HeadingsChecker
Utility class which performs headings check according to PDF/UA-1 specification.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Handler class that checks heading tags while traversing the tag tree. -
Constructor Summary
Constructors -
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
-
PdfUA1HeadingsChecker
Creates a new instance ofPdfUA1HeadingsChecker
.- 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
-