Class PdfUA2FormulaChecker
- java.lang.Object
-
- com.itextpdf.pdfua.checkers.utils.ua2.PdfUA2FormulaChecker
-
public final class PdfUA2FormulaChecker extends java.lang.Object
Utility class which performs "Formula" tag related checks according to PDF/UA-2 specification.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PdfUA2FormulaChecker.PdfUA2FormulaTagHandler
Handler class that checks "Formula" tags while traversing the tag tree.
-
Field Summary
Fields Modifier and Type Field Description private PdfUAValidationContext
context
private static java.lang.String
MATH
-
Constructor Summary
Constructors Modifier Constructor Description private
PdfUA2FormulaChecker(PdfUAValidationContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkStructElement(IStructureNode elem)
Checks if "math" structure element from "MathML" namespace is enclosed within "Formula" tag.
-
-
-
Field Detail
-
MATH
private static final java.lang.String MATH
- See Also:
- Constant Field Values
-
context
private final PdfUAValidationContext context
-
-
Constructor Detail
-
PdfUA2FormulaChecker
private PdfUA2FormulaChecker(PdfUAValidationContext context)
-
-
Method Detail
-
checkStructElement
public void checkStructElement(IStructureNode elem)
Checks if "math" structure element from "MathML" namespace is enclosed within "Formula" tag.- Parameters:
elem
- structure element to check- Throws:
PdfUAConformanceException
- if document has incorrect tag structure for Formula tag
-
-