Class GraphicsCheckUtil
- java.lang.Object
-
- com.itextpdf.pdfua.checkers.utils.GraphicsCheckUtil
-
public final class GraphicsCheckUtil extends java.lang.Object
Class that provides methods for checking PDF/UA compliance of graphics elements.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GraphicsCheckUtil.GraphicsHandler
Helper class that checks the conformance of graphics tags while iterating the tag tree structure.
-
Field Summary
Fields Modifier and Type Field Description private PdfUAValidationContext
context
-
Constructor Summary
Constructors Constructor Description GraphicsCheckUtil(PdfUAValidationContext context)
Creates a newGraphicsCheckUtil
instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkLayoutElement(Image image)
Checks if image has alternative description or actual text.private static boolean
hasAtLeastOneValidValue(java.lang.Object altText, java.lang.Object actualText)
-
-
-
Field Detail
-
context
private final PdfUAValidationContext context
-
-
Constructor Detail
-
GraphicsCheckUtil
public GraphicsCheckUtil(PdfUAValidationContext context)
Creates a newGraphicsCheckUtil
instance.- Parameters:
context
- The validation context.
-
-
Method Detail
-
checkLayoutElement
public void checkLayoutElement(Image image)
Checks if image has alternative description or actual text.- Parameters:
image
- the image to check
-
hasAtLeastOneValidValue
private static boolean hasAtLeastOneValidValue(java.lang.Object altText, java.lang.Object actualText)
-
-