Class PdfUA2HeadingsChecker
-  
        
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHandler class that checks heading tags while traversing the tag tree. -  
        
Constructor Summary
Constructors -  
        
Method Summary
Modifier and TypeMethodDescriptionvoidcheckLayoutElement(IRenderer renderer) Checks if layout element has correct heading according to PDF/UA-2 specification.voidcheckStructElement(IStructureNode structNode) Checks if layout element has correct heading according to PDF/UA-2 specification. 
-  
        
Constructor Details
-  
           
PdfUA2HeadingsChecker
Creates a new instance ofPdfUA2HeadingsChecker.- Parameters:
 - 
              
context- the validation context 
 
 -  
           
 -  
        
Method Details
-  
           
checkLayoutElement
Checks if layout element has correct heading according to PDF/UA-2 specification.Conforming files shall use the explicitly numbered heading structure types (H1-Hn) and shall not use the H structure type.
Note, that PDF/UA-2 specification does not include requirements on the use of sequential heading levels. But where a heading’s level is evident, the heading level of the structure element enclosing it shall match that heading level, e.g. a heading with the real content “5.1.6.4 Some header” is evidently at heading level 4. This requirement is not checked.
- Parameters:
 - 
              
renderer- layout element to check - Throws:
 - 
              
PdfUAConformanceException- if document uses the H structure type 
 -  
           
checkStructElement
Checks if layout element has correct heading according to PDF/UA-2 specification.Conforming files shall use the explicitly numbered heading structure types (H1-Hn) and shall not use the H structure type.
Note, that PDF/UA-2 specification does not include requirements on the use of sequential heading levels. But where a heading’s level is evident, the heading level of the structure element enclosing it shall match that heading level, e.g. a heading with the real content “5.1.6.4 Some header” is evidently at heading level 4. This requirement is not checked.
- Parameters:
 - 
              
structNode- structure element to check - Throws:
 - 
              
PdfUAConformanceException- if document uses the H structure type 
 
 -